use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.
the class EnvironmentConfiguratorConfig method messageListenerContainer.
@Bean
public MessageListenerContainer messageListenerContainer(ConnectionFactory connectionFactory) {
DirectMessageListenerContainer container = new DirectMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setQueueNames(fileQueue);
return container;
}
use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.
the class AmqpTestReplicationClientConfig method replicationMessageListenerContainer.
@Bean
public MessageListenerContainer replicationMessageListenerContainer(ConnectionFactory connectionFactory, MessageListener replicationMessageListener) {
DirectMessageListenerContainer container = new DirectMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setQueueNames(fullQueueName);
container.setMessageListener(replicationMessageListener);
return container;
}
use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.
the class AmqpFileClientConfig method messageListenerContainer.
@Bean
public MessageListenerContainer messageListenerContainer(ConnectionFactory connectionFactory, MessageListener messageListener) {
DirectMessageListenerContainer container = new DirectMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setQueueNames(resultQueue);
container.setMessageListener(messageListener);
return container;
}
use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.
the class AmqpReplicationClientConfig method replicationMessageListenerContainer.
@Bean
public MessageListenerContainer replicationMessageListenerContainer(ConnectionFactory connectionFactory, MessageListener replicationMessageListener) {
DirectMessageListenerContainer container = new DirectMessageListenerContainer();
container.setConnectionFactory(connectionFactory);
container.setQueueNames(fullQueueName);
container.setMessageListener(replicationMessageListener);
return container;
}
use of org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer in project av-service by dvoraka.
the class AmqpServerConfig method fileServerMessageListenerContainer.
@Bean
public MessageListenerContainer fileServerMessageListenerContainer(ConnectionFactory serverConnectionFactory, MessageListener fileServerMessageListener) {
DirectMessageListenerContainer container = new DirectMessageListenerContainer();
container.setConnectionFactory(serverConnectionFactory);
container.setQueueNames(fileQueue);
container.setMessageListener(fileServerMessageListener);
return container;
}
Aggregations