| 程序包 | 说明 |
|---|---|
| com.alipay.disruptor | |
| com.alipay.disruptor.dsl |
| 构造器和说明 |
|---|
WorkerPool(EventFactory<T> eventFactory,
ExceptionHandler<? super T> exceptionHandler,
WorkHandler<? super T>... workHandlers)
Construct a work pool with an internal
RingBuffer for convenience. |
WorkerPool(RingBuffer<T> ringBuffer,
SequenceBarrier sequenceBarrier,
ExceptionHandler<? super T> exceptionHandler,
WorkHandler<? super T>... workHandlers)
Create a worker pool to enable an array of
WorkHandlers to consume published sequences. |
WorkProcessor(RingBuffer<T> ringBuffer,
SequenceBarrier sequenceBarrier,
WorkHandler<? super T> workHandler,
ExceptionHandler<? super T> exceptionHandler,
Sequence workSequence)
Construct a
WorkProcessor. |
| 限定符和类型 | 方法和说明 |
|---|---|
EventHandlerGroup<T> |
EventHandlerGroup.handleEventsWithWorkerPool(WorkHandler<? super T>... handlers)
Set up a worker pool to handle events from the ring buffer.
|
EventHandlerGroup<T> |
Disruptor.handleEventsWithWorkerPool(WorkHandler<T>... workHandlers)
Set up a
WorkerPool to distribute an event to one of a pool of work handler threads. |
EventHandlerGroup<T> |
EventHandlerGroup.thenHandleEventsWithWorkerPool(WorkHandler<? super T>... handlers)
Set up a worker pool to handle events from the ring buffer.
|
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.