public class RingBufferApplicationEventPublisher
extends java.lang.Object
implements org.springframework.context.ApplicationEventPublisher, org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
ApplicationEventPublisher that uses a RingBuffer to dispatch events.| Constructor and Description |
|---|
RingBufferApplicationEventPublisher(int backlog,
boolean autoStartup) |
RingBufferApplicationEventPublisher(int backlog,
boolean autoStartup,
reactor.jarjar.com.lmax.disruptor.dsl.ProducerType producerType,
reactor.jarjar.com.lmax.disruptor.WaitStrategy waitStrategy) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
publishEvent(org.springframework.context.ApplicationEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext appCtx) |
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
public RingBufferApplicationEventPublisher(int backlog,
boolean autoStartup)
public RingBufferApplicationEventPublisher(int backlog,
boolean autoStartup,
reactor.jarjar.com.lmax.disruptor.dsl.ProducerType producerType,
reactor.jarjar.com.lmax.disruptor.WaitStrategy waitStrategy)
public void setApplicationContext(org.springframework.context.ApplicationContext appCtx)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic void publishEvent(org.springframework.context.ApplicationEvent event)
publishEvent in interface org.springframework.context.ApplicationEventPublisher