Package org.openwms.core.preferences.app
Class PreferencesAsyncConfiguration
java.lang.Object
org.openwms.core.preferences.app.PreferencesAsyncConfiguration
@Profile("ASYNCHRONOUS")
@RefreshScope
@EnableRabbit
@Configuration
public class PreferencesAsyncConfiguration
extends Object
A PreferencesAsyncConfiguration contains the microservice' asynchronous configuration that is activated on Spring Profile
SpringProfiles.ASYNCHRONOUS_PROFILE
.- Author:
- Heiko Scherrer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor
(package private) org.springframework.amqp.core.TopicExchange
lgExchange
(String exchangeName) (package private) org.springframework.amqp.support.converter.MessageConverter
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, org.ameba.amqp.RabbitTemplateConfigurable rabbitTemplateConfigurable) (package private) org.springframework.amqp.support.converter.MessageConverter
-
Field Details
-
BOOT_LOGGER
private static final org.slf4j.Logger BOOT_LOGGER
-
-
Constructor Details
-
PreferencesAsyncConfiguration
public PreferencesAsyncConfiguration()
-
-
Method Details
-
messageConverter
@RefreshScope @ConditionalOnExpression("\'${owms.preferences.serialization}\'==\'json\'") @Bean org.springframework.amqp.support.converter.MessageConverter messageConverter() -
serializerMessageConverter
@RefreshScope @ConditionalOnExpression("\'${owms.preferences.serialization}\'==\'barray\'") @Bean org.springframework.amqp.support.converter.MessageConverter serializerMessageConverter() -
interceptor
@Bean org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor interceptor() -
rabbitTemplate
@RefreshScope @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) -
lgExchange
@RefreshScope @Bean org.springframework.amqp.core.TopicExchange lgExchange(@Value("${owms.events.core.preferences.exchange-name}") String exchangeName)
-