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

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (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
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)