| 程序包 | 说明 |
|---|---|
| com.alipay.common.tracer.core.appender.manager | |
| com.alipay.disruptor | |
| com.alipay.disruptor.dsl |
| 限定符和类型 | 类和说明 |
|---|---|
class |
SofaTracerSpanEventFactory |
class |
StringEventFactory |
| 限定符和类型 | 方法和说明 |
|---|---|
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 <E> RingBuffer<E> |
RingBuffer.createMultiProducer(EventFactory<E> factory,
int bufferSize)
Create a new multiple producer RingBuffer using the default wait strategy
BlockingWaitStrategy. |
static <E> RingBuffer<E> |
RingBuffer.createMultiProducer(EventFactory<E> factory,
int bufferSize,
WaitStrategy waitStrategy)
Create a new multiple producer RingBuffer with the specified wait strategy.
|
static <E> RingBuffer<E> |
RingBuffer.createSingleProducer(EventFactory<E> factory,
int bufferSize)
Create a new single producer RingBuffer using the default wait strategy
BlockingWaitStrategy. |
static <E> RingBuffer<E> |
RingBuffer.createSingleProducer(EventFactory<E> factory,
int bufferSize,
WaitStrategy waitStrategy)
Create a new single producer RingBuffer with the specified wait strategy.
|
| 构造器和说明 |
|---|
WorkerPool(EventFactory<T> eventFactory,
ExceptionHandler<? super T> exceptionHandler,
WorkHandler<? super T>... workHandlers)
Construct a work pool with an internal
RingBuffer for convenience. |
| 构造器和说明 |
|---|
Disruptor(EventFactory<T> eventFactory,
int ringBufferSize,
Executor executor)
已过时。
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,
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)
Create a new Disruptor.
|
Disruptor(EventFactory<T> eventFactory,
int ringBufferSize,
ThreadFactory threadFactory,
ProducerType producerType,
WaitStrategy waitStrategy)
Create a new Disruptor.
|
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.