public final class DelayedRetryRequestDroppedException
extends RequestDroppedException
implements DelayedRetryException
RequestDroppedException to indicate that a request was dropped by a server due to capacity constraints and
requires a client to delay its retry.
This error reflects the client side application logic and its interpretation of a service response; meaning that
its up to the application to declare whether a HttpResponseStatus.TOO_MANY_REQUESTS is a safe-to-retry
response, and if so after how much delay().
| Constructor and Description |
|---|
DelayedRetryRequestDroppedException(Duration delay)
Creates a new instance.
|
DelayedRetryRequestDroppedException(Duration delay,
String message)
Creates a new instance.
|
DelayedRetryRequestDroppedException(Duration delay,
String message,
Throwable cause)
Creates a new instance.
|
DelayedRetryRequestDroppedException(Duration delay,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Creates a new instance.
|
DelayedRetryRequestDroppedException(Duration delay,
Throwable cause)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
delay() |
Throwable |
throwable() |
public DelayedRetryRequestDroppedException(Duration delay)
delay - The delay to be provided as input to a retry mechanism.public DelayedRetryRequestDroppedException(Duration delay,
@Nullable
String message)
delay - The delay to be provided as input to a retry mechanism.message - the detail message.public DelayedRetryRequestDroppedException(Duration delay,
@Nullable
String message,
@Nullable
Throwable cause)
delay - The delay to be provided as input to a retry mechanism.message - the detail message.cause - of this exception.public DelayedRetryRequestDroppedException(Duration delay,
@Nullable
Throwable cause)
delay - The delay to be provided as input to a retry mechanism.cause - of this exception.public DelayedRetryRequestDroppedException(Duration delay,
@Nullable
String message,
@Nullable
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
delay - The delay to be provided as input to a retry mechanism.message - the detail message.cause - of this exception.enableSuppression - true if suppression should be enabled.writableStackTrace - true if the stack trace should be writable