| 程序包 | 说明 |
|---|---|
| com.alipay.disruptor | |
| com.alipay.disruptor.dsl |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> RingBuffer<E> |
RingBuffer.create(ProducerType producerType,
EventFactory<E> factory,
int bufferSize,
WaitStrategy waitStrategy)
Create a new Ring Buffer with the specified producer type (SINGLE or MULTI)
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ProducerType |
ProducerType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ProducerType[] |
ProducerType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 构造器和说明 |
|---|
Disruptor(EventFactory<T> eventFactory,
int ringBufferSize,
Executor executor,
ProducerType producerType,
WaitStrategy waitStrategy)
已过时。
Use a
ThreadFactory instead of an Executor as a the ThreadFactory
is able to report errors when it is unable to construct a thread to run a producer. |
Disruptor(EventFactory<T> eventFactory,
int ringBufferSize,
ThreadFactory threadFactory,
ProducerType producerType,
WaitStrategy waitStrategy)
Create a new Disruptor.
|
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.