Package io.netty.util.concurrent
Class RejectedExecutionHandlers
java.lang.Object
io.netty.util.concurrent.RejectedExecutionHandlers
Expose helper methods which create different
RejectedExecutionHandler
s.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RejectedExecutionHandler
Tries to backoff when the task can not be added due restrictions for an configured amount of time.static RejectedExecutionHandler
reject()
Returns aRejectedExecutionHandler
that will always just throw aRejectedExecutionException
.
-
Field Details
-
REJECT
-
-
Constructor Details
-
RejectedExecutionHandlers
private RejectedExecutionHandlers()
-
-
Method Details
-
reject
Returns aRejectedExecutionHandler
that will always just throw aRejectedExecutionException
. -
backoff
Tries to backoff when the task can not be added due restrictions for an configured amount of time. This is only done if the task was added from outside of the event loop which meansEventExecutor.inEventLoop()
returnsfalse
.
-