|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.amqp.rabbit.connection.RabbitAccessor
org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer
org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer
org.axonframework.eventhandling.amqp.spring.ExtendedMessageListenerContainer
public class ExtendedMessageListenerContainer
Specialization of the SimpleMessageListenerContainer that allows consumer to be registered as exclusive on a channel. This allows for active-passive setups, as a second consumer will fallback to retry-mode when a connection is failed. When the first connection is released, a retry will automatically succeed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer |
|---|
org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.ContainerDelegate |
| Nested classes/interfaces inherited from class org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer |
|---|
org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.SharedConnectionNotInitializedException |
| Field Summary |
|---|
| Fields inherited from class org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer |
|---|
DEFAULT_PREFETCH_COUNT, DEFAULT_RECEIVE_TIMEOUT, DEFAULT_RECOVERY_INTERVAL, DEFAULT_SHUTDOWN_TIMEOUT |
| Fields inherited from class org.springframework.amqp.rabbit.connection.RabbitAccessor |
|---|
logger |
| Constructor Summary | |
|---|---|
ExtendedMessageListenerContainer()
|
|
| Method Summary | |
|---|---|
void |
setConcurrentConsumers(int concurrentConsumers)
Sets the number of concurrent consumers in this container. |
void |
setConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
|
void |
setExclusive(boolean exclusive)
Sets whether the listener container created by this factory should be exclusive. |
| Methods inherited from class org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer |
|---|
createBlockingQueueConsumer, doInitialize, doShutdown, doStart, doStop, getActiveConsumerCount, handleStartupFailure, initializeConsumers, invokeListener, isChannelLocallyTransacted, setAdviceChain, setDefaultRequeueRejected, setMessagePropertiesConverter, setPrefetchCount, setReceiveTimeout, setRecoveryInterval, setShutdownTimeout, setTaskExecutor, setTransactionAttribute, setTransactionManager, setTxSize, sharedConnectionEnabled, validateConfiguration |
| Methods inherited from class org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer |
|---|
afterPropertiesSet, checkMessageListener, destroy, doInvokeListener, doInvokeListener, executeListener, getAcknowledgeMode, getBeanName, getMessageListener, getPhase, getQueueNames, getRequiredQueueNames, handleListenerException, initialize, invokeErrorHandler, isActive, isAutoStartup, isExposeListenerChannel, isRunning, setAcknowledgeMode, setAutoStartup, setBeanName, setErrorHandler, setExposeListenerChannel, setMessageListener, setPhase, setQueueNames, setQueues, shutdown, start, stop, stop, wrapToListenerExecutionFailedExceptionIfNeeded |
| Methods inherited from class org.springframework.amqp.rabbit.connection.RabbitAccessor |
|---|
convertRabbitAccessException, createConnection, getChannel, getConnection, getConnectionFactory, getTransactionalResourceHolder, isChannelTransacted, setChannelTransacted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedMessageListenerContainer()
| Method Detail |
|---|
public void setConnectionFactory(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory)
setConnectionFactory in class org.springframework.amqp.rabbit.connection.RabbitAccessorpublic void setExclusive(boolean exclusive)
exclusive - Whether the created container should be an exclusive listenerpublic void setConcurrentConsumers(int concurrentConsumers)
setConcurrentConsumers in class org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainerconcurrentConsumers - The number of consumers to register on the queue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||