public class MessageEventHandler extends java.lang.Object implements com.lmax.disruptor.EventHandler<MessageEvent>, com.lmax.disruptor.WorkHandler<MessageEvent>, org.springframework.context.ApplicationContextAware, com.lmax.disruptor.LifecycleAware
| 构造器和说明 |
|---|
MessageEventHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
MessageRingBufferDispatcher |
getDispatcher() |
void |
onEvent(MessageEvent event) |
void |
onEvent(MessageEvent event,
long sequence,
boolean endOfBatch) |
void |
onShutdown() |
void |
onStart() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setDispatcher(MessageRingBufferDispatcher dispatcher) |
void |
setSentinel(Sentinel sentinel) |
public void setSentinel(Sentinel sentinel)
public MessageRingBufferDispatcher getDispatcher()
public void setDispatcher(MessageRingBufferDispatcher dispatcher)
dispatcher - the dispatcher to setpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onEvent(MessageEvent event, long sequence, boolean endOfBatch) throws java.lang.Exception
onEvent 在接口中 com.lmax.disruptor.EventHandler<MessageEvent>java.lang.Exceptionpublic void onEvent(MessageEvent event) throws java.lang.Exception
onEvent 在接口中 com.lmax.disruptor.WorkHandler<MessageEvent>java.lang.Exceptionpublic void onStart()
onStart 在接口中 com.lmax.disruptor.LifecycleAwarepublic void onShutdown()
onShutdown 在接口中 com.lmax.disruptor.LifecycleAware