public final class RejectedExecutionHandlers
extends java.lang.Object
RejectedExecutionHandler的辅助方法。
| Modifier and Type | Method and Description |
|---|---|
static RejectedExecutionHandler |
backoff(int retries, long backoffAmount, java.util.concurrent.TimeUnit unit)
试图在任务无法添加到配置的时间量的应有限制时退避。
|
static RejectedExecutionHandler |
reject()
返回 RejectedExecutionHandler ,将永远只是抛出一个RejectedExecutionException 。
|
public static RejectedExecutionHandler reject()
RejectedExecutionHandler ,将永远只是抛出一个RejectedExecutionException 。
public static RejectedExecutionHandler backoff(int retries, long backoffAmount, java.util.concurrent.TimeUnit unit)
EventExecutor.inEventLoop()返回false 。
Copyright © 2008–2018 The Netty Project. All rights reserved.