Java Code Examples for io.netty.util.concurrent.RejectedExecutionHandlers#reject()

The following examples show how to use io.netty.util.concurrent.RejectedExecutionHandlers#reject() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SingleThreadEventLoop.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
protected SingleThreadEventLoop(EventLoopGroup parent, ThreadFactory threadFactory, boolean addTaskWakesUp) {
    this(parent, threadFactory, addTaskWakesUp, DEFAULT_MAX_PENDING_TASKS, RejectedExecutionHandlers.reject());
}
 
Example 2
Source File: SingleThreadEventLoop.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
protected SingleThreadEventLoop(EventLoopGroup parent, Executor executor, boolean addTaskWakesUp) {
    this(parent, executor, addTaskWakesUp, DEFAULT_MAX_PENDING_TASKS, RejectedExecutionHandlers.reject());
}
 
Example 3
Source File: NioEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
public NioEventLoopGroup(int nThreads, ThreadFactory threadFactory,
    final SelectorProvider selectorProvider, final SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, threadFactory, selectorProvider, selectStrategyFactory, RejectedExecutionHandlers.reject());
}
 
Example 4
Source File: NioEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
public NioEventLoopGroup(int nThreads, Executor executor, final SelectorProvider selectorProvider,
                         final SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, executor, selectorProvider, selectStrategyFactory, RejectedExecutionHandlers.reject());
}
 
Example 5
Source File: NioEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
public NioEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory,
                         final SelectorProvider selectorProvider,
                         final SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, executor, chooserFactory, selectorProvider, selectStrategyFactory,
            RejectedExecutionHandlers.reject());
}
 
Example 6
Source File: KQueueEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
public KQueueEventLoopGroup(int nThreads, Executor executor, SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, executor, 0, selectStrategyFactory, RejectedExecutionHandlers.reject());
}
 
Example 7
Source File: KQueueEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
public KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory,
                           SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, executor, chooserFactory, 0, selectStrategyFactory, RejectedExecutionHandlers.reject());
}
 
Example 8
Source File: EpollEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
public EpollEventLoopGroup(int nThreads, Executor executor, SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, executor, 0, selectStrategyFactory, RejectedExecutionHandlers.reject());
}
 
Example 9
Source File: EpollEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 4 votes vote down vote up
public EpollEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory,
                           SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, executor, chooserFactory, 0, selectStrategyFactory, RejectedExecutionHandlers.reject());
}
 
Example 10
Source File: ComputeEventLoop.java    From cantor with Apache License 2.0 4 votes vote down vote up
ComputeEventLoop(EventLoopGroup parent, Executor executor, int maxPendingTasks) {
    super(parent, executor, true, maxPendingTasks, RejectedExecutionHandlers.reject());
}
 
Example 11
Source File: KQueueEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 2 votes vote down vote up
/**
 * Create a new instance using the specified number of threads, the given {@link ThreadFactory} and the given
 * maximal amount of epoll events to handle per epollWait(...).
 *
 * @deprecated  Use {@link #KQueueEventLoopGroup(int)}, {@link #KQueueEventLoopGroup(int, ThreadFactory)}, or
 * {@link #KQueueEventLoopGroup(int, SelectStrategyFactory)}
 */
@Deprecated
public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce,
                           SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, threadFactory, maxEventsAtOnce, selectStrategyFactory, RejectedExecutionHandlers.reject());
}
 
Example 12
Source File: EpollEventLoopGroup.java    From netty-4.1.22 with Apache License 2.0 2 votes vote down vote up
/**
 * Create a new instance using the specified number of threads, the given {@link ThreadFactory} and the given
 * maximal amount of epoll events to handle per epollWait(...).使用指定的线程数、给定的ThreadFactory和每个epollWait(…)要处理的给定的最大epoll事件数量创建一个新实例。
 *
 * @deprecated  Use {@link #EpollEventLoopGroup(int)}, {@link #EpollEventLoopGroup(int, ThreadFactory)}, or
 * {@link #EpollEventLoopGroup(int, SelectStrategyFactory)}
 */
@Deprecated
public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce,
                           SelectStrategyFactory selectStrategyFactory) {
    super(nThreads, threadFactory, maxEventsAtOnce, selectStrategyFactory, RejectedExecutionHandlers.reject());
}