public final class RejectedExecutionHandlers extends Object
RejectedExecutionHandler
s.Modifier and Type | Method and Description |
---|---|
static RejectedExecutionHandler |
backoff(int retries,
long backoffAmount,
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 . |
public static RejectedExecutionHandler reject()
RejectedExecutionHandler
that will always just throw a RejectedExecutionException
.public static RejectedExecutionHandler backoff(int retries, long backoffAmount, TimeUnit unit)
EventExecutor.inEventLoop()
returns false
.Copyright © 2008–2024 The Netty Project. All rights reserved.