T - the type parameterpublic class DisruptorProvider<T>
extends java.lang.Object
| Constructor and Description |
|---|
DisruptorProvider(com.lmax.disruptor.RingBuffer<DataEvent<T>> ringBuffer,
com.lmax.disruptor.dsl.Disruptor<DataEvent<T>> disruptor,
boolean isOrderly)
Instantiates a new Disruptor provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onData(T data)
Send a data.
|
void |
onOrderlyData(T data,
java.lang.String... hashArray)
On orderly data.
|
void |
shutdown()
Shutdown.
|
public DisruptorProvider(com.lmax.disruptor.RingBuffer<DataEvent<T>> ringBuffer, com.lmax.disruptor.dsl.Disruptor<DataEvent<T>> disruptor, boolean isOrderly)
ringBuffer - the ring bufferdisruptor - the disruptorisOrderly - the orderly Whether to execute sequentially.Copyright © 2023 The Apache Software Foundation. All rights reserved.