ExceptionHandlingRetryResult Class
- java.
lang. Object - ExceptionHandlingResult
- microsoft.
servicefabric. services. communication. client. ExceptionHandlingRetryResult
- microsoft.
public class ExceptionHandlingRetryResult extends ExceptionHandlingResult
Specifies the exception handling result when the request from client to service can be retried
Constructor Summary
Constructor | Description |
---|---|
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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getExceptionId()
String that uniquely identifies the exception type. |
int |
getMaxRetryCount()
Maximum number of times this exception type needs to be retried before giving up. The default value is int.MaxValue |
Duration |
getRetryDelay()
The operation should be retried after this delay. |
boolean |
isTransient()
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. |
Constructor Details
ExceptionHandlingRetryResult
public ExceptionHandlingRetryResult(String exceptionId, boolean isTransient, Duration retryDelay, int maxRetryCount)
Instantiates the ExceptionHandlingRetryResult using the given arguments.
Parameters:
ExceptionHandlingRetryResult
public ExceptionHandlingRetryResult(Throwable exception, boolean isTransient, Duration retryDelay, int maxRetryCount)
Instantiates the ExceptionHandlingRetryResult using the given arguments.
Parameters:
ExceptionHandlingRetryResult
public ExceptionHandlingRetryResult(Throwable exception, boolean isTransient, OperationRetrySettings retrySettings, int maxRetryCount)
Instantiates the ExceptionHandlingRetryResult using the given arguments.
Parameters:
Method Details
getExceptionId
public String getExceptionId()
String that uniquely identifies the exception type.
Returns:
getMaxRetryCount
public int getMaxRetryCount()
Maximum number of times this exception type needs to be retried before giving up. The default value is int.MaxValue
Returns:
getRetryDelay
public Duration getRetryDelay()
The operation should be retried after this delay.
Returns:
isTransient
public boolean isTransient()
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.
Returns:
Applies to
Azure SDK for Java