@Factory
@Requires(property="micronaut.jms.sqs.enabled",
value="true")
public class SqsConfiguration
extends java.lang.Object
JMSConnectionFactory based on the properties
provided by SqsConfigurationProperties.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONNECTION_FACTORY_BEAN_NAME
Name of the SQS
ConnectionFactory bean. |
| Constructor and Description |
|---|
SqsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.ConnectionFactory |
sqsJmsConnectionFactory(SqsConfigurationProperties config,
com.amazonaws.services.sqs.AmazonSQS sqs)
Generates a
JMSConnectionFactory bean in the application context. |
public static final java.lang.String CONNECTION_FACTORY_BEAN_NAME
ConnectionFactory bean.@JMSConnectionFactory(value="sqsJmsConnectionFactory") public javax.jms.ConnectionFactory sqsJmsConnectionFactory(SqsConfigurationProperties config, com.amazonaws.services.sqs.AmazonSQS sqs)
JMSConnectionFactory bean in the application context.
The bean is a SQSConnectionFactory
configured with properties from SqsConfigurationProperties.
config - config settings for SQSsqs - a configured AmazonSQS instance, typically built with
AmazonSQSClientBuilder.SQSConnectionFactory defined by the config.