@Configuration
@Import(value={de.otto.synapse.configuration.aws.SynapseAwsAuthConfiguration.class,de.otto.synapse.configuration.SynapseAutoConfiguration.class})
@EnableConfigurationProperties(value=de.otto.synapse.configuration.aws.AwsProperties.class)
public class SqsAutoConfiguration
extends java.lang.Object
| Constructor and Description |
|---|
SqsAutoConfiguration(de.otto.synapse.configuration.aws.AwsProperties awsProperties) |
| Modifier and Type | Method and 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) |
de.otto.synapse.endpoint.sender.MessageSenderEndpointFactory |
messageQueueSenderEndpointFactory(de.otto.synapse.endpoint.MessageInterceptorRegistry registry,
software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient,
java.lang.String messageSenderName) |
software.amazon.awssdk.services.sqs.SqsAsyncClient |
sqsAsyncClient(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider) |
@Autowired public SqsAutoConfiguration(de.otto.synapse.configuration.aws.AwsProperties awsProperties)
@Bean @ConditionalOnMissingBean(value=software.amazon.awssdk.services.sqs.SqsAsyncClient.class) public software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider)
@Bean
@ConditionalOnMissingBean(name="messageQueueSenderEndpointFactory")
public de.otto.synapse.endpoint.sender.MessageSenderEndpointFactory messageQueueSenderEndpointFactory(de.otto.synapse.endpoint.MessageInterceptorRegistry registry,
software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient,
@Value(value="${spring.application.name:Synapse Service}")
java.lang.String messageSenderName)
@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)