Class SqsAutoConfiguration


  • @Configuration
    @Import({de.otto.synapse.configuration.aws.SynapseAwsAuthConfiguration.class,de.otto.synapse.configuration.SynapseAutoConfiguration.class})
    @EnableConfigurationProperties(de.otto.synapse.configuration.aws.AwsProperties.class)
    public class SqsAutoConfiguration
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SqsAutoConfiguration​(de.otto.synapse.configuration.aws.AwsProperties awsProperties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpointFactory messageQueueReceiverEndpointFactory​(de.otto.synapse.endpoint.MessageInterceptorRegistry registry, software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient, org.springframework.context.ApplicationEventPublisher eventPublisher)  
      software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient​(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.core.retry.RetryPolicy sqsRetryPolicy)  
      de.otto.synapse.endpoint.sender.MessageSenderEndpointFactory sqsMessageQueueSenderEndpointFactory​(de.otto.synapse.endpoint.MessageInterceptorRegistry registry, software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient, java.lang.String messageSenderName)  
      software.amazon.awssdk.core.retry.RetryPolicy sqsRetryPolicy()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SqsAutoConfiguration

        @Autowired
        public SqsAutoConfiguration​(de.otto.synapse.configuration.aws.AwsProperties awsProperties)
    • Method Detail

      • sqsAsyncClient

        @Bean
        @ConditionalOnMissingBean(software.amazon.awssdk.services.sqs.SqsAsyncClient.class)
        public software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient​(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider,
                                                                                 software.amazon.awssdk.core.retry.RetryPolicy sqsRetryPolicy)
      • sqsRetryPolicy

        @Bean
        @ConditionalOnMissingBean(name="sqsRetryPolicy",
                                  value=software.amazon.awssdk.core.retry.RetryPolicy.class)
        public software.amazon.awssdk.core.retry.RetryPolicy sqsRetryPolicy()
      • sqsMessageQueueSenderEndpointFactory

        @Bean
        @ConditionalOnMissingBean(name="sqsMessageQueueSenderEndpointFactory")
        public de.otto.synapse.endpoint.sender.MessageSenderEndpointFactory sqsMessageQueueSenderEndpointFactory​(de.otto.synapse.endpoint.MessageInterceptorRegistry registry,
                                                                                                                 software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient,
                                                                                                                 @Value("${spring.application.name:Synapse Service}")
                                                                                                                 java.lang.String messageSenderName)
      • messageQueueReceiverEndpointFactory

        @Bean
        @ConditionalOnMissingBean(name="messageQueueReceiverEndpointFactory")
        public de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpointFactory messageQueueReceiverEndpointFactory​(de.otto.synapse.endpoint.MessageInterceptorRegistry registry,
                                                                                                                         software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient,
                                                                                                                         org.springframework.context.ApplicationEventPublisher eventPublisher)