Example usage for Java org.springframework.amqp.rabbit.listener DirectMessageListenerContainer fields, constructors, methods, implement or subclass
The text is from its open source code.
DirectMessageListenerContainer(ConnectionFactory connectionFactory) Create an instance with the provided connection factory. |
void | addQueues(Queue... queues) |
void | addQueues(Stream |
void | afterPropertiesSet() Delegates to #validateConfiguration() and #initialize() . |
String[] | getQueueNames() |
boolean | isActive() |
boolean | isRunning() Determine whether this container is currently running, that is, whether it has been started and not stopped yet. |
void | setAdviceChain(Advice... adviceChain) Public setter for the Advice to apply to listener executions. |
void | setApplicationContext(ApplicationContext applicationContext) |
void | setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void | setAutoDeclare(boolean autoDeclare) Set to true to automatically declare elements (queues, exchanges, bindings) in the application context during container start(). |
void | setBeanName(String beanName) |
void | setConsumersPerQueue(int consumersPerQueue) Each queue runs in its own consumer; set this property to create multiple consumers for each queue. |
void | setConsumerTagStrategy(ConsumerTagStrategy consumerTagStrategy) Set the implementation of ConsumerTagStrategy to generate consumer tags. |
void | setFailedDeclarationRetryInterval(long failedDeclarationRetryInterval) Set the interval between passive queue declaration attempts in milliseconds. |
void | setIdleEventInterval(long idleEventInterval) How often to emit ListenerContainerIdleEvent s in milliseconds. |
void | setMessageListener(MessageListener messageListener) Set the MessageListener . |
void | setMessagesPerAck(int messagesPerAck) Set the number of messages to receive before acknowledging (success). |
void | setMissingQueuesFatal(boolean missingQueuesFatal) Defaults to false for this container. |
void | setMonitorInterval(long monitorInterval) Set how often to run a task to check for failed consumers and idle containers. |
void | setQueueNames(String... queueName) |
void | setQueues(Queue... queues) Set the name of the queue(s) to receive messages from. |
void | setRecoveryBackOff(BackOff recoveryBackOff) Specify the BackOff for interval between recovery attempts. |
void | setShutdownTimeout(long shutdownTimeout) The time to wait for workers in milliseconds after the container is stopped. |
void | start() Start this container. |
void | stop() Stop this container. |