ExceptionHandlingRetryResult 构造函数

定义

重载

ExceptionHandlingRetryResult(String exceptionId, boolean isTransient, Duration retryDelay, int maxRetryCount)

Instantiates the ExceptionHandlingRetryResult using the given arguments.

ExceptionHandlingRetryResult(Throwable exception, boolean isTransient, Duration retryDelay, int maxRetryCount)

Instantiates the ExceptionHandlingRetryResult using the given arguments.

ExceptionHandlingRetryResult(Throwable exception, boolean isTransient, OperationRetrySettings retrySettings, int maxRetryCount)

Instantiates the ExceptionHandlingRetryResult using the given arguments.

ExceptionHandlingRetryResult(String exceptionId, boolean isTransient, Duration retryDelay, int maxRetryCount)

Instantiates the ExceptionHandlingRetryResult using the given arguments.

public ExceptionHandlingRetryResult(String exceptionId, boolean isTransient, Duration retryDelay, int maxRetryCount)

参数

exceptionId
String

An identifier for the exception that needs to be retried.

isTransient
boolean

Indicates if this is a transient retriable exception. Transient retriable exceptions are those where the communication channel from client to service still exists. Non transient retriable exceptions are those where we need to re-resolve the service endpoint before we retry.

retryDelay
Duration

The interval to wait before retrying

maxRetryCount
int

The maximum number of times the exception identified by the exceptionId parameter needs to be retried for.

ExceptionHandlingRetryResult(Throwable exception, boolean isTransient, Duration retryDelay, int maxRetryCount)

Instantiates the ExceptionHandlingRetryResult using the given arguments.

public ExceptionHandlingRetryResult(Throwable exception, boolean isTransient, Duration retryDelay, int maxRetryCount)

参数

exception
Throwable

An identifier for the exception that needs to be retried.

isTransient
boolean

Indicates if this is a transient retriable exception. Transient retriable exceptions are those where the communication channel from client to service still exists. Non transient retriable exceptions are those where we need to re-resolve the service endpoint before we retry.

retryDelay
Duration

The interval to wait before retrying

maxRetryCount
int

The maximum number of times the exception identified by the exceptionId parameter needs to be retried for.

ExceptionHandlingRetryResult(Throwable exception, boolean isTransient, OperationRetrySettings retrySettings, int maxRetryCount)

Instantiates the ExceptionHandlingRetryResult using the given arguments.

public ExceptionHandlingRetryResult(Throwable exception, boolean isTransient, OperationRetrySettings retrySettings, int maxRetryCount)

参数

exception
Throwable

The exception that needs to be retried.

isTransient
boolean

Indicates if this is a transient retriable exception. Transient retriable exceptions are those where the communication channel from client to service still exists. Non transient retriable exceptions are those where we need to re-resolve the service endpoint before we retry.

retrySettings
OperationRetrySettings

The retrySettings from which the interval to wait before retrying is figured out.

maxRetryCount
int

The maximum number of times the exception identified by the exceptionId parameter needs to be retried for.

适用于