com.jdon.async.disruptor
类 DisruptorForCommandFactory

java.lang.Object
  继承者 com.jdon.async.disruptor.DisruptorForCommandFactory
所有已实现的接口:
Startable

public class DisruptorForCommandFactory
extends Object
implements Startable


字段摘要
protected  Map<String,TreeSet<DomainEventHandler>> handlesMap
           
static String module
           
 
构造方法摘要
DisruptorForCommandFactory(DisruptorParams disruptorParams, ContainerCallback containerCallback, DisruptorCommandPoolFactory disruptorCommandPoolFactory, DisruptorFactory disruptorFactory)
           
 
方法摘要
 com.lmax.disruptor.dsl.Disruptor createDisruptor(String topic)
          one event one EventDisruptor
 com.lmax.disruptor.dsl.Disruptor getDisruptor(String topic, Object target)
           
 ModelConsumerMethodHolder getModelConsumerMethodHolder(String topic)
           
 TreeSet<DomainEventHandler> getTreeSet()
           
 boolean isContain(String topic)
           
protected  TreeSet<DomainEventHandler> loadOnCommandConsumers(String topic, TreeSet<DomainEventHandler> ehs)
           
 void releaseDisruptor(Object owner)
           
 void start()
          Start this component.
 void stop()
          Stop this component.
 
从类 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,
                                                     Object target)

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.