Class AdvancedSQSImplementation
- All Implemented Interfaces:
com.adaptris.aws.AWSCredentialsProviderBuilder.BuilderConfig,ComponentLifecycleExtension,ConnectionComparator<VendorImplementationBase>,VendorImplementation,VendorImplementationBase
This VendorImplementation uses the Amazon SQS JMS compatibility layer. When using this class, do not use the AmazonSQS Producer and Consumer classes. Use regular JMS consumers and producers instead.
The key from the client-configuration-properties element should match the name of the underlying ClientConfiguration
property. So if you wanted to control the user-agent you would configure
<client-configuration-properties>
<key-value-pair>
<key>UserAgent</key>
<value>My User Agent</value>
</key-value-pair>
</client-configuration-properties>
- Since:
- 3.2.1
In the adapter configuration file this class is aliased as advanced-amazon-sqs-implementation which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.jms.VendorImplementationImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.adaptris.aws.EndpointBuilder@NonNull KeyValuePairSetAny other properties you wish to set on the client.com.adaptris.aws.CustomEndpointSet a custom endpoint for this connection.com.adaptris.aws.RetryPolicyFactoryThe retry policy if required.com.adaptris.aws.RetryPolicyFactoryvoidsetClientConfigurationProperties(@NonNull KeyValuePairSet clientConfigurationProperties) Any other properties you wish to set on the client.voidsetCustomEndpoint(com.adaptris.aws.CustomEndpoint customEndpoint) Set a custom endpoint for this connection.voidsetRetryPolicy(com.adaptris.aws.RetryPolicyFactory retryPolicy) The retry policy if required.withCustomEndpoint(com.adaptris.aws.CustomEndpoint endpoint) Methods inherited from class com.adaptris.aws.sqs.jms.AmazonSQSImplementation
build, buildClientConfiguration, connectionEquals, createConnectionFactory, credentialsProvider, getCredentials, getPrefetchCount, getRegion, getSqsClientFactory, newProviderConfiguration, prefetchCount, setCredentials, setPrefetchCount, setRegion, setSqsClientFactory, withClientFactory, withCredentialsProviderBuilderMethods inherited from class com.adaptris.core.jms.VendorImplementationImp
applyVendorSessionProperties, createConsumer, createDestination, createQueue, createQueueReceiver, createSession, createTopic, createTopicSubscriber, prepare, retrieveBrokerDetailsForLoggingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.jms.VendorImplementation
createConnection
-
Constructor Details
-
AdvancedSQSImplementation
public AdvancedSQSImplementation()
-
-
Method Details
-
clientConfiguration
- Specified by:
clientConfigurationin interfacecom.adaptris.aws.AWSCredentialsProviderBuilder.BuilderConfig- Overrides:
clientConfigurationin classAmazonSQSImplementation
-
endpointBuilder
public com.adaptris.aws.EndpointBuilder endpointBuilder()- Specified by:
endpointBuilderin interfacecom.adaptris.aws.AWSCredentialsProviderBuilder.BuilderConfig- Overrides:
endpointBuilderin classAmazonSQSImplementation
-
withCustomEndpoint
-
retryPolicy
public com.adaptris.aws.RetryPolicyFactory retryPolicy()- Specified by:
retryPolicyin interfacecom.adaptris.aws.AWSCredentialsProviderBuilder.BuilderConfig- Overrides:
retryPolicyin classAmazonSQSImplementation
-
getClientConfigurationProperties
Any other properties you wish to set on the client.- See Also:
-
ClientConfigurationBuilder
-
setClientConfigurationProperties
public void setClientConfigurationProperties(@NonNull @NonNull KeyValuePairSet clientConfigurationProperties) Any other properties you wish to set on the client.- See Also:
-
ClientConfigurationBuilder
-
getRetryPolicy
public com.adaptris.aws.RetryPolicyFactory getRetryPolicy()The retry policy if required. -
setRetryPolicy
public void setRetryPolicy(com.adaptris.aws.RetryPolicyFactory retryPolicy) The retry policy if required. -
getCustomEndpoint
public com.adaptris.aws.CustomEndpoint getCustomEndpoint()Set a custom endpoint for this connection.Generally speaking, you don't need to configure this; use
AmazonSQSImplementation.setRegion(String)instead. This is only required if you are planning to use a non-standard service endpoint such as localstack to provide AWS services. Explicitly configuring this means that yourAmazonSQSImplementation.setRegion(String)will have no effect (i.e.AwsClientBuilder#setRegion(String)will never be invoked. -
setCustomEndpoint
public void setCustomEndpoint(com.adaptris.aws.CustomEndpoint customEndpoint) Set a custom endpoint for this connection.Generally speaking, you don't need to configure this; use
AmazonSQSImplementation.setRegion(String)instead. This is only required if you are planning to use a non-standard service endpoint such as localstack to provide AWS services. Explicitly configuring this means that yourAmazonSQSImplementation.setRegion(String)will have no effect (i.e.AwsClientBuilder#setRegion(String)will never be invoked.
-