| 程序包 | 说明 |
|---|---|
| net.lulihu.disruptorKit | |
| net.lulihu.disruptorKit.demo | |
| net.lulihu.disruptorKit.oneOf |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> com.lmax.disruptor.EventFactory<Event<T>> |
DefaultEventFactory.factory() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
Consumer.consumption(Event<T> event)
消费方法实现
|
boolean |
Consumer.consumptionBefore(Event<T> event)
事件执行前回调
|
void |
Consumer.consumptionError(Event<T> event,
Throwable e)
消费时发生异常信息处理回调
|
void |
Consumer.consumptionFinally(Event<T> event)
消费方法实现方法的finally块回调
|
void |
Consumer.consumptionSuccess(Event<T> event)
消费成功回调
|
void |
Consumer.onEvent(Event<T> event)
不重复消费执行
|
void |
Consumer.onEvent(Event<T> event,
long sequence,
boolean endOfBatch)
重复消费执行
|
| 构造器和说明 |
|---|
Producer(com.lmax.disruptor.RingBuffer<Event<T>> ringBuffer) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HelloWorld.Consumer1.consumption(Event<HelloWorld.TestEvent> event) |
void |
HelloWorld.Consumer2.consumption(Event<HelloWorld.TestEvent> event) |
void |
HelloWorld.Consumer3.consumption(Event<HelloWorld.TestEvent> event) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WorkHandlerConsumer.onEvent(Event<Object> event) |
Copyright © 2019. All rights reserved.