Class SqsConfiguration
java.lang.Object
io.micronaut.jms.sqs.configuration.SqsConfiguration
@Factory
@Requires(property="micronaut.jms.sqs.enabled",
value="true")
public class SqsConfiguration
extends Object
Generates the AWS SQS
JMSConnectionFactory
based on the properties
provided by SqsConfigurationProperties
.- Since:
- 1.0.0
- Author:
- Burt Beckwith
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.ConnectionFactory
sqsJmsConnectionFactory
(SqsConfigurationProperties config, software.amazon.awssdk.services.sqs.SqsClient sqs) Generates aJMSConnectionFactory
bean in the application context.jakarta.jms.ConnectionFactory
sqsJmsConnectionFactory
(SqsConfigurationProperties config, software.amazon.awssdk.services.sqs.SqsClientBuilder builder) Generates aJMSConnectionFactory
bean in the application context.
-
Field Details
-
CONNECTION_FACTORY_BEAN_NAME
Name of the SQSConnectionFactory
bean.- See Also:
-
-
Constructor Details
-
SqsConfiguration
public SqsConfiguration()
-
-
Method Details
-
sqsJmsConnectionFactory
@JMSConnectionFactory("sqsJmsConnectionFactory") public jakarta.jms.ConnectionFactory sqsJmsConnectionFactory(SqsConfigurationProperties config, software.amazon.awssdk.services.sqs.SqsClient sqs) Generates aJMSConnectionFactory
bean in the application context.The bean is a
SQSConnectionFactory
configured with properties fromSqsConfigurationProperties
.- Parameters:
config
- config settings for SQSsqs
- a configured SqsClient instance, typically built withSqsClientBuilder
.- Returns:
- the
SQSConnectionFactory
defined by theconfig
.
-
sqsJmsConnectionFactory
@JMSConnectionFactory("sqsJmsConnectionFactory") public jakarta.jms.ConnectionFactory sqsJmsConnectionFactory(SqsConfigurationProperties config, software.amazon.awssdk.services.sqs.SqsClientBuilder builder) Generates aJMSConnectionFactory
bean in the application context.The bean is a
SQSConnectionFactory
configured with properties fromSqsConfigurationProperties
.- Parameters:
config
- config settings for SQSbuilder
- a configuredSqsClientBuilder
.- Returns:
- the
SQSConnectionFactory
defined by theconfig
.
-