T - the type parameterpublic class DisruptorProviderManage<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Integer |
DEFAULT_SIZE |
| Constructor and Description |
|---|
DisruptorProviderManage(QueueConsumerFactory<T> consumerFactory)
Instantiates a new Disruptor provider manage.
|
DisruptorProviderManage(QueueConsumerFactory<T> consumerFactory,
java.lang.Integer ringBufferSize)
Instantiates a new Disruptor provider manage.
|
DisruptorProviderManage(QueueConsumerFactory<T> consumerFactory,
int consumerSize,
int ringBufferSize)
Instantiates a new Disruptor provider manage.
|
| Modifier and Type | Method and Description |
|---|---|
DisruptorProvider<T> |
getProvider()
Gets provider.
|
void |
startup()
start disruptor.
|
void |
startup(boolean isOrderly)
start disruptor..
|
public DisruptorProviderManage(QueueConsumerFactory<T> consumerFactory, java.lang.Integer ringBufferSize)
consumerFactory - the consumer factoryringBufferSize - the sizepublic DisruptorProviderManage(QueueConsumerFactory<T> consumerFactory)
consumerFactory - the consumer factorypublic DisruptorProviderManage(QueueConsumerFactory<T> consumerFactory, int consumerSize, int ringBufferSize)
consumerFactory - the consumer factoryconsumerSize - the consumer sizeringBufferSize - the ringBuffer sizepublic void startup()
public void startup(boolean isOrderly)
isOrderly - the orderly Whether to execute sequentially.public DisruptorProvider<T> getProvider()
Copyright © 2023 The Apache Software Foundation. All rights reserved.