com.jdon.async.disruptor
类 DisruptorForCommandFactory
java.lang.Object
com.jdon.async.disruptor.DisruptorForCommandFactory
- 所有已实现的接口:
- Startable
public class DisruptorForCommandFactory
- extends Object
- implements Startable
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final String module
handlesMap
protected final Map<String,TreeSet<DomainEventHandler>> handlesMap
DisruptorForCommandFactory
public DisruptorForCommandFactory(DisruptorParams disruptorParams,
ContainerCallback containerCallback,
DisruptorCommandPoolFactory disruptorCommandPoolFactory,
DisruptorFactory disruptorFactory)
getDisruptor
public com.lmax.disruptor.dsl.Disruptor getDisruptor(String topic)
releaseDisruptor
public void releaseDisruptor(Object owner)
createDisruptor
public com.lmax.disruptor.dsl.Disruptor createDisruptor(String topic)
- one event one EventDisruptor
- 参数:
topic -
- 返回:
isContain
public boolean isContain(String topic)
getModelConsumerMethodHolder
public ModelConsumerMethodHolder getModelConsumerMethodHolder(String topic)
loadOnCommandConsumers
protected TreeSet<DomainEventHandler> loadOnCommandConsumers(String topic,
TreeSet<DomainEventHandler> ehs)
start
public void start()
- 从接口
Startable 复制的描述
- Start this component.
- 指定者:
- 接口
Startable 中的 start
stop
public void stop()
- 从接口
Startable 复制的描述
- Stop this component.
- 指定者:
- 接口
Startable 中的 stop
getTreeSet
public TreeSet<DomainEventHandler> getTreeSet()
Copyright © 2013. All Rights Reserved.