public class RqueueMessageListenerContainer
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.SmartLifecycle, org.springframework.beans.factory.BeanNameAware
| Constructor and Description |
|---|
RqueueMessageListenerContainer(RqueueMessageHandler rqueueMessageHandler,
RqueueMessageTemplate rqueueMessageTemplate) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.core.task.AsyncTaskExecutor |
createDefaultTaskExecutor() |
void |
destroy() |
protected void |
doDestroy() |
protected void |
doStart() |
protected void |
doStop() |
long |
getBackoffTime() |
java.lang.String |
getBeanName() |
java.lang.Integer |
getMaxNumWorkers() |
long |
getMaxWorkerWaitTime() |
int |
getPhase() |
long |
getPollingInterval() |
java.util.Map<java.lang.String,ConsumerQueueDetail> |
getRegisteredQueues() |
RqueueMessageHandler |
getRqueueMessageHandler() |
protected org.springframework.core.task.AsyncTaskExecutor |
getSpinningTaskExecutor() |
org.springframework.core.task.AsyncTaskExecutor |
getTaskExecutor() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setAutoStartup(boolean autoStartup) |
void |
setBackOffTime(long backOffTime) |
void |
setBeanName(java.lang.String name) |
void |
setMaxNumWorkers(int maxNumWorkers) |
void |
setMaxWorkerWaitTime(long stopTime) |
void |
setPhase(int phase)
Configure a custom phase for the container to start.
|
void |
setPollingInterval(long pollingInterval) |
void |
setTaskExecutor(org.springframework.core.task.AsyncTaskExecutor taskExecutor) |
void |
start() |
protected void |
startQueue(java.lang.String queueName,
ConsumerQueueDetail queueDetail) |
void |
stop() |
public RqueueMessageListenerContainer(RqueueMessageHandler rqueueMessageHandler, RqueueMessageTemplate rqueueMessageTemplate)
public void setMaxWorkerWaitTime(long stopTime)
public long getMaxWorkerWaitTime()
public java.lang.String getBeanName()
public void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic RqueueMessageHandler getRqueueMessageHandler()
public java.lang.Integer getMaxNumWorkers()
public void setMaxNumWorkers(int maxNumWorkers)
public void setBackOffTime(long backOffTime)
public long getBackoffTime()
public void setTaskExecutor(org.springframework.core.task.AsyncTaskExecutor taskExecutor)
public void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionprotected void doDestroy()
public int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic void setPhase(int phase)
SmartLifecycle interface.phase - - the phase that defines the phase respecting the Ordered semanticspublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void setAutoStartup(boolean autoStartup)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionprotected org.springframework.core.task.AsyncTaskExecutor getSpinningTaskExecutor()
public java.util.Map<java.lang.String,ConsumerQueueDetail> getRegisteredQueues()
public org.springframework.core.task.AsyncTaskExecutor createDefaultTaskExecutor()
public void start()
start in interface org.springframework.context.Lifecycleprotected void doStart()
protected void startQueue(java.lang.String queueName,
ConsumerQueueDetail queueDetail)
public org.springframework.core.task.AsyncTaskExecutor getTaskExecutor()
public void stop()
stop in interface org.springframework.context.Lifecycleprotected void doStop()
public boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic long getPollingInterval()
public void setPollingInterval(long pollingInterval)