public class RingBufferManager
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
RingBufferManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
int |
getBufferSize() |
int |
getProcessorsize() |
com.lmax.disruptor.RingBuffer<MessageEvent> |
getRingBuffer() |
Sentinel |
getSentinel() |
com.lmax.disruptor.WaitStrategy |
getStrategy() |
boolean |
putMessage(Message message,
boolean blocked) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBufferSize(int bufferSize) |
void |
setChecktime(int checktime) |
void |
setMaxsize(int maxsize) |
void |
setMessageRingBufferDispatcher(MessageRingBufferDispatcher messageRingBufferDispatcher) |
void |
setMinsize(int minsize) |
void |
setRingBuffer(com.lmax.disruptor.RingBuffer<MessageEvent> ringBuffer) |
void |
setStrategy(com.lmax.disruptor.WaitStrategy strategy) |
void |
shutdown() |
public void setMessageRingBufferDispatcher(MessageRingBufferDispatcher messageRingBufferDispatcher)
public void setMaxsize(int maxsize)
public void setChecktime(int checktime)
public void setMinsize(int minsize)
public com.lmax.disruptor.RingBuffer<MessageEvent> getRingBuffer()
public void setRingBuffer(com.lmax.disruptor.RingBuffer<MessageEvent> ringBuffer)
public int getBufferSize()
public void setBufferSize(int bufferSize)
bufferSize - the bufferSize to setpublic com.lmax.disruptor.WaitStrategy getStrategy()
public void setStrategy(com.lmax.disruptor.WaitStrategy strategy)
strategy - the strategy to setpublic int getProcessorsize()
public boolean putMessage(Message message, boolean blocked)
public Sentinel getSentinel()
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void shutdown()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException