| 程序包 | 说明 |
|---|---|
| com.alipay.common.tracer.core.appender.manager | |
| com.alipay.disruptor | |
| com.alipay.disruptor.dsl |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConsumerExceptionHandler |
class |
StringConsumerExceptionHandler |
| 限定符和类型 | 类和说明 |
|---|---|
class |
FatalExceptionHandler
Convenience implementation of an exception handler that using standard JDK logging to log
the exception as
Level.SEVERE and re-throw it wrapped in a RuntimeException |
class |
IgnoreExceptionHandler
Convenience implementation of an exception handler that using standard JDK logging to log
the exception as
Level.INFO |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BatchEventProcessor.setExceptionHandler(ExceptionHandler<? super T> exceptionHandler)
Set a new
ExceptionHandler for handling exceptions propagated out of the BatchEventProcessor |
| 构造器和说明 |
|---|
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. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ExceptionHandlerWrapper<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Disruptor.handleExceptionsWith(ExceptionHandler<? super T> exceptionHandler)
已过时。
This method only applies to future event handlers. Use setDefaultExceptionHandler instead which applies to existing and new event handlers.
|
void |
Disruptor.setDefaultExceptionHandler(ExceptionHandler<? super T> exceptionHandler)
Specify an exception handler to be used for event handlers and worker pools created by this Disruptor.
|
void |
ExceptionHandlerWrapper.switchTo(ExceptionHandler<? super T> exceptionHandler) |
void |
ExceptionHandlerSetting.with(ExceptionHandler<? super T> exceptionHandler)
Specify the
ExceptionHandler to use with the event handler. |
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.