接口的使用
cn.wjybxx.concurrent.RejectedExecutionHandler
使用RejectedExecutionHandler的程序包
-
cn.wjybxx.concurrent中RejectedExecutionHandler的使用
修饰符和类型方法说明static RejectedExecutionHandlerRejectedExecutionHandlers.abort()抛出拒绝异常static RejectedExecutionHandlerRejectedExecutionHandlers.callerRuns()调用者执行策略:调用execute方法的线程执行。static RejectedExecutionHandlerRejectedExecutionHandlers.discard()丢弃任务EventLoopBuilder.getRejectedExecutionHandler()static RejectedExecutionHandlerRejectedExecutionHandlers.record()仅仅是记录一条错误日志修饰符和类型方法说明EventLoopBuilder.DisruptorBuilder.setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) EventLoopBuilder.setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler)