|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lmax.disruptor.dsl.EventHandlerGroup<T>
T - the type of entry used by the event processors.public class EventHandlerGroup<T>
A group of EventProcessors used as part of the Disruptor.
| Method Summary | |
|---|---|
EventHandlerGroup<T> |
and(EventHandler<T>... handlers)
Create a new event handler group that combines the handlers in this group with handlers. |
EventHandlerGroup<T> |
and(EventProcessor... processors)
Create a new event handler group that combines the handlers in this group with processors. |
SequenceBarrier |
asSequenceBarrier()
Create a dependency barrier for the processors in this group. |
EventHandlerGroup<T> |
handleEventsWith(EventHandler<T>... handlers)
Set up batch handlers to handleEventException events from the ring buffer. |
EventHandlerGroup<T> |
then(EventHandler<T>... handlers)
Set up batch handlers to consume events from the ring buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public EventHandlerGroup<T> and(EventHandler<T>... handlers)
handlers - the handlers to combine.
public EventHandlerGroup<T> and(EventProcessor... processors)
processors - the processors to combine.
public EventHandlerGroup<T> then(EventHandler<T>... handlers)
EventProcessor in this group has processed the event.
This method is generally used as part of a chain. For example if the handler A must
process events before handler B:
dw.handleEventsWith(A).then(B);
handlers - the batch handlers that will process events.
EventHandlerGroup that can be used to set up a event processor barrier over the created event processors.public EventHandlerGroup<T> handleEventsWith(EventHandler<T>... handlers)
EventProcessor in this group has processed the event.
This method is generally used as part of a chain. For example if the handler A must
process events before handler B:
dw.after(A).handleEventsWith(B);
handlers - the batch handlers that will process events.
EventHandlerGroup that can be used to set up a event processor barrier over the created event processors.public SequenceBarrier asSequenceBarrier()
BatchEventProcessors created by the disruptor.
SequenceBarrier including all the processors in this group.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||