public final class RejectedExecutionHandlers
extends java.lang.Object
RejectedExecutionHandlers.| Modifier and Type | Field and Description |
|---|---|
private static RejectedExecutionHandler |
REJECT |
| Modifier | Constructor and Description |
|---|---|
private |
RejectedExecutionHandlers() |
| Modifier and Type | Method and Description |
|---|---|
static RejectedExecutionHandler |
backoff(int retries,
long backoffAmount,
java.util.concurrent.TimeUnit unit)
Tries to backoff when the task can not be added due restrictions for an configured amount of time.
|
static RejectedExecutionHandler |
reject()
Returns a
RejectedExecutionHandler that will always just throw a RejectedExecutionException. |
private static final RejectedExecutionHandler REJECT
public static RejectedExecutionHandler reject()
RejectedExecutionHandler that will always just throw a RejectedExecutionException.public static RejectedExecutionHandler backoff(int retries, long backoffAmount, java.util.concurrent.TimeUnit unit)
EventExecutor.inEventLoop() returns false.