类 EventLoopBuilder.DisruptorBuilder<T extends IAgentEvent>
java.lang.Object
cn.wjybxx.concurrent.EventLoopBuilder<T>
cn.wjybxx.concurrent.EventLoopBuilder.DisruptorBuilder<T>
- 封闭类:
EventLoopBuilder<T extends IAgentEvent>
public static class EventLoopBuilder.DisruptorBuilder<T extends IAgentEvent>
extends EventLoopBuilder<T>
-
嵌套类概要
从类继承的嵌套类/接口 cn.wjybxx.concurrent.EventLoopBuilder
EventLoopBuilder.DisruptorBuilder<T extends IAgentEvent> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()EventSequencer<? extends T> 事件序列生成器 注意:应当避免使用无超时的等待策略,EventLoop需要处理定时任务,不能一直等待生产者。等待策略 -- 如果未显式指定,则使用eventSequencer中的默认等待策略booleanEventLoop在退出的时候是否清理buffer 1.setAgent(EventLoopAgent<? super T> agent) setBatchSize(int batchSize) setCleanBufferOnExit(boolean cleanBufferOnExit) setEventSequencer(EventSequencer<? extends T> eventSequencer) setMainModule(EventLoopModule mainModule) setParent(EventLoopGroup parent) setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) setThreadFactory(ThreadFactory threadFactory) setWaitStrategy(WaitStrategy waitStrategy) 从类继承的方法 cn.wjybxx.concurrent.EventLoopBuilder
getAgent, getBatchSize, getMainModule, getParent, getRejectedExecutionHandler, getThreadFactory, newDisruptBuilder, newDisruptBuilder
-
构造器详细资料
-
DisruptorBuilder
public DisruptorBuilder()
-
-
方法详细资料
-
setParent
- 覆盖:
setParent在类中EventLoopBuilder<T extends IAgentEvent>
-
setRejectedExecutionHandler
public EventLoopBuilder.DisruptorBuilder<T> setRejectedExecutionHandler(RejectedExecutionHandler rejectedExecutionHandler) - 覆盖:
setRejectedExecutionHandler在类中EventLoopBuilder<T extends IAgentEvent>
-
setThreadFactory
- 覆盖:
setThreadFactory在类中EventLoopBuilder<T extends IAgentEvent>
-
setAgent
- 覆盖:
setAgent在类中EventLoopBuilder<T extends IAgentEvent>
-
setMainModule
- 覆盖:
setMainModule在类中EventLoopBuilder<T extends IAgentEvent>
-
setBatchSize
- 覆盖:
setBatchSize在类中EventLoopBuilder<T extends IAgentEvent>
-
build
- 指定者:
build在类中EventLoopBuilder<T extends IAgentEvent>
-
getEventSequencer
事件序列生成器 注意:应当避免使用无超时的等待策略,EventLoop需要处理定时任务,不能一直等待生产者。 -
setEventSequencer
public EventLoopBuilder.DisruptorBuilder<T> setEventSequencer(EventSequencer<? extends T> eventSequencer) -
getWaitStrategy
等待策略 -- 如果未显式指定,则使用eventSequencer中的默认等待策略 -
setWaitStrategy
-
isCleanBufferOnExit
public boolean isCleanBufferOnExit()EventLoop在退出的时候是否清理buffer 1. 默认清理 2. 如果该值为true,意味着当前消费者是消费者的末端,或仅有该EventLoop消费者。 -
setCleanBufferOnExit
-