| 程序包 | 说明 |
|---|---|
| com.alipay.disruptor | |
| com.alipay.disruptor.dsl | |
| com.alipay.disruptor.util |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BatchEventProcessor<T>
Convenience class for handling the batching semantics of consuming entries from a
RingBuffer
and delegating the available events to an EventHandler. |
class |
NoOpEventProcessor
No operation version of a
EventProcessor that simply tracks a Sequence. |
class |
WorkProcessor<T>
A
WorkProcessor wraps a single WorkHandler, effectively consuming the sequence
and ensuring appropriate barriers. |
| 限定符和类型 | 方法和说明 |
|---|---|
EventProcessor |
EventProcessorFactory.createEventProcessor(RingBuffer<T> ringBuffer,
Sequence[] barrierSequences)
Create a new event processor that gates on
barrierSequences. |
| 限定符和类型 | 方法和说明 |
|---|---|
EventHandlerGroup<T> |
Disruptor.after(EventProcessor... processors)
Create a group of event processors to be used as a dependency.
|
EventHandlerGroup<T> |
EventHandlerGroup.and(EventProcessor... processors)
Create a new event handler group that combines the handlers in this group with processors.
|
EventHandlerGroup<T> |
Disruptor.handleEventsWith(EventProcessor... processors)
Set up custom event processors to handle events from the ring buffer.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Sequence[] |
Util.getSequencesFor(EventProcessor... processors)
Get an array of
Sequences for the passed EventProcessors |
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.