Package org.openwms.common.app
Class CommonOptAsyncConfiguration
java.lang.Object
org.openwms.common.app.CommonOptAsyncConfiguration
@Profile("ASYNCHRONOUS")
@Configuration
@RefreshScope
@EnableRabbit
class CommonOptAsyncConfiguration
extends Object
A CommonOptAsyncConfiguration contains the modules asynchronous configuration that is
only active when Springs ASYNCHRONOUS profile is set.
- Author:
- Heiko Scherrer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.amqp.core.BindingcommandsBinding(org.springframework.amqp.core.TopicExchange commonTuCommandsExchange, org.springframework.amqp.core.Queue commandsQueue, String routingKey) (package private) org.springframework.amqp.core.QueuecommandsQueue(String queueName, org.springframework.amqp.core.DirectExchange dlExchange) (package private) org.springframework.amqp.core.TopicExchangecommonLocCommandsExchange(String exchangeName) (package private) org.springframework.amqp.core.QueuecommonLocCommandsQueue(String queueName, org.springframework.amqp.core.DirectExchange dlExchange) (package private) org.springframework.amqp.core.TopicExchangecommonLocRegistrationCommandsExchange(String exchangeName) (package private) org.springframework.amqp.core.QueuecommonLocRegistrationCommandsQueue(String queueName, org.springframework.amqp.core.DirectExchange dlExchange) (package private) org.springframework.amqp.core.TopicExchangecommonTuCommandsExchange(String exchangeName) (package private) org.springframework.amqp.core.TopicExchangecommonTuExchange(String exchangeName) (package private) org.springframework.amqp.core.TopicExchangecommonTuTExchange(String exchangeName) (package private) org.springframework.amqp.core.Binding(package private) org.springframework.amqp.core.DirectExchangedlExchange(String applicationName, String exchangeName) (package private) org.springframework.amqp.core.Queue(package private) org.springframework.amqp.core.BindinglocCommandsBinding(org.springframework.amqp.core.TopicExchange commonLocCommandsExchange, org.springframework.amqp.core.Queue commonLocCommandsQueue, String routingKey) (package private) org.springframework.amqp.core.BindinglocRegistrationCommandsBinding(org.springframework.amqp.core.TopicExchange commonLocRegistrationCommandsExchange, org.springframework.amqp.core.Queue commonLocRegistrationCommandsQueue, String routingKey) (package private) org.springframework.amqp.support.converter.MessageConverterorg.springframework.amqp.rabbit.core.RabbitTemplaterabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.amqp.support.converter.MessageConverter> messageConverter, org.ameba.amqp.RabbitTemplateConfigurable rabbitTemplateConfigurable) (package private) org.springframework.amqp.support.converter.MessageConverter(package private) org.springframework.amqp.core.TopicExchangeshippingExchange(String exchangeName) (package private) org.springframework.amqp.core.QueueshippingSplitQueue(String queueName, String exchangeName) (package private) org.springframework.amqp.core.BindingsplitBinding(org.springframework.amqp.core.TopicExchange shippingExchange, org.springframework.amqp.core.Queue shippingSplitQueue, String routingKey)
-
Field Details
-
BOOT_LOGGER
private static final org.slf4j.Logger BOOT_LOGGER -
POISON_MESSAGE
- See Also:
-
DEAD_LETTER_EXCHANGE
- See Also:
-
DEAD_LETTER_ROUTING_KEY
- See Also:
-
-
Constructor Details
-
CommonOptAsyncConfiguration
CommonOptAsyncConfiguration()
-
-
Method Details
-
messageConverter
@ConditionalOnExpression("\'${owms.common.serialization}\'==\'json\'") @Bean org.springframework.amqp.support.converter.MessageConverter messageConverter() -
serializerMessageConverter
@ConditionalOnExpression("\'${owms.common.serialization}\'==\'barray\'") @Bean org.springframework.amqp.support.converter.MessageConverter serializerMessageConverter() -
rabbitTemplate
@Primary @Bean(name="amqpTemplate") public org.springframework.amqp.rabbit.core.RabbitTemplate rabbitTemplate(org.springframework.amqp.rabbit.connection.ConnectionFactory connectionFactory, org.springframework.beans.factory.ObjectProvider<org.springframework.amqp.support.converter.MessageConverter> messageConverter, @Autowired(required=false) org.ameba.amqp.RabbitTemplateConfigurable rabbitTemplateConfigurable) -
dlExchange
-
commonTuExchange
@RefreshScope @Bean org.springframework.amqp.core.TopicExchange commonTuExchange(@Value("${owms.events.common.tu.exchange-name}") String exchangeName) -
commonTuTExchange
@RefreshScope @Bean org.springframework.amqp.core.TopicExchange commonTuTExchange(@Value("${owms.events.common.tut.exchange-name}") String exchangeName) -
commonTuCommandsExchange
@RefreshScope @Bean org.springframework.amqp.core.TopicExchange commonTuCommandsExchange(@Value("${owms.commands.common.tu.exchange-name}") String exchangeName) -
commonLocCommandsExchange
@RefreshScope @Bean org.springframework.amqp.core.TopicExchange commonLocCommandsExchange(@Value("${owms.commands.common.loc.exchange-name}") String exchangeName) -
commonLocRegistrationCommandsExchange
@RefreshScope @Bean org.springframework.amqp.core.TopicExchange commonLocRegistrationCommandsExchange(@Value("${owms.commands.common.registration.exchange-name}") String exchangeName) -
shippingExchange
@Profile("SHIPPING") @RefreshScope @Bean org.springframework.amqp.core.TopicExchange shippingExchange(@Value("${owms.events.shipping.exchange-name}") String exchangeName) -
dlQueue
-
commandsQueue
@RefreshScope @Bean org.springframework.amqp.core.Queue commandsQueue(@Value("${owms.commands.common.tu.queue-name}") String queueName, org.springframework.amqp.core.DirectExchange dlExchange) -
commonLocCommandsQueue
@RefreshScope @Bean org.springframework.amqp.core.Queue commonLocCommandsQueue(@Value("${owms.commands.common.loc.queue-name}") String queueName, org.springframework.amqp.core.DirectExchange dlExchange) -
commonLocRegistrationCommandsQueue
@RefreshScope @Bean org.springframework.amqp.core.Queue commonLocRegistrationCommandsQueue(@Value("${owms.commands.common.registration.queue-name}") String queueName, org.springframework.amqp.core.DirectExchange dlExchange) -
shippingSplitQueue
-
dlBinding
-
commandsBinding
@RefreshScope @Bean org.springframework.amqp.core.Binding commandsBinding(@Qualifier("commonTuCommandsExchange") org.springframework.amqp.core.TopicExchange commonTuCommandsExchange, @Qualifier("commandsQueue") org.springframework.amqp.core.Queue commandsQueue, @Value("${owms.commands.common.tu.routing-key}") String routingKey) -
locCommandsBinding
@RefreshScope @Bean org.springframework.amqp.core.Binding locCommandsBinding(@Qualifier("commonLocCommandsExchange") org.springframework.amqp.core.TopicExchange commonLocCommandsExchange, @Qualifier("commonLocCommandsQueue") org.springframework.amqp.core.Queue commonLocCommandsQueue, @Value("${owms.commands.common.loc.routing-key}") String routingKey) -
locRegistrationCommandsBinding
@RefreshScope @Bean org.springframework.amqp.core.Binding locRegistrationCommandsBinding(@Qualifier("commonLocRegistrationCommandsExchange") org.springframework.amqp.core.TopicExchange commonLocRegistrationCommandsExchange, @Qualifier("commonLocRegistrationCommandsQueue") org.springframework.amqp.core.Queue commonLocRegistrationCommandsQueue, @Value("${owms.commands.common.registration.routing-key}") String routingKey) -
splitBinding
@Profile("SHIPPING") @RefreshScope @Bean org.springframework.amqp.core.Binding splitBinding(@Qualifier("shippingExchange") org.springframework.amqp.core.TopicExchange shippingExchange, @Qualifier("shippingSplitQueue") org.springframework.amqp.core.Queue shippingSplitQueue, @Value("${owms.events.shipping.split.routing-key}") String routingKey)
-