net.lulihu.disruptorKit.oneOf.WorkHandlerConsumer Maven / Gradle / Ivy
package net.lulihu.disruptorKit.oneOf;
import com.lmax.disruptor.WorkHandler;
import net.lulihu.designPattern.chain.ResponsibilityChainHandler;
import net.lulihu.disruptorKit.Event;
/**
* 不重复消费模式
*/
public class WorkHandlerConsumer implements WorkHandler> {
private final WorkHandlerManage consumer;
public WorkHandlerConsumer() {
consumer = WorkHandlerManage.getInstance();
}
@Override
public void onEvent(Event