Package | Description |
---|---|
io.netty.util.concurrent |
Utility classes for concurrent / async tasks.
|
Modifier and Type | Method and Description |
---|---|
static RejectedExecutionHandler |
RejectedExecutionHandlers.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 |
RejectedExecutionHandlers.reject()
Returns a
RejectedExecutionHandler that will always just throw a RejectedExecutionException . |
Constructor and Description |
---|
DefaultEventExecutor(EventExecutorGroup parent,
Executor executor,
int maxPendingTasks,
RejectedExecutionHandler rejectedExecutionHandler) |
DefaultEventExecutor(EventExecutorGroup parent,
ThreadFactory threadFactory,
int maxPendingTasks,
RejectedExecutionHandler rejectedExecutionHandler) |
DefaultEventExecutorGroup(int nThreads,
ThreadFactory threadFactory,
int maxPendingTasks,
RejectedExecutionHandler rejectedHandler)
Create a new instance.
|
SingleThreadEventExecutor(EventExecutorGroup parent,
Executor executor,
boolean addTaskWakesUp,
int maxPendingTasks,
RejectedExecutionHandler rejectedHandler)
Create a new instance
|
SingleThreadEventExecutor(EventExecutorGroup parent,
ThreadFactory threadFactory,
boolean addTaskWakesUp,
int maxPendingTasks,
RejectedExecutionHandler rejectedHandler)
Create a new instance
|
Copyright © 2008–2019 The Netty Project. All rights reserved.