public class MapBasedSQSConfig extends Object implements AmazonSQSConfig
AmazonSQSConstants
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_REGION |
Constructor and Description |
---|
MapBasedSQSConfig() |
MapBasedSQSConfig(Map<String,String> sqsConfig) |
Modifier and Type | Method and Description |
---|---|
String |
getAccessKey()
AWS access key.
|
protected static Map<String,String> |
getConfigMapFromSystemProperties() |
String |
getQueuePrefix()
Prefix to be added to all queues.
|
com.amazonaws.regions.Regions |
getRegion()
AWS region to use.
|
AmazonSQSQueueConfig |
getRpcQueueConfig()
Retrieves the queue configuration for queues used by the RPC API.
|
String |
getSecretKey()
AWS secret key.
|
AmazonSQSQueueConfig |
getSinkQueueConfig()
Retrieves the queue configuration for queues used by the Sink API.
|
boolean |
hasStaticCredentials()
Convenience method that returns
true if both an access key and secret key have been set. |
boolean |
isUseHttp()
Used to force the SQS client to use HTTP instead of HTTPS.
|
String |
toString() |
public static final String DEFAULT_REGION
protected static Map<String,String> getConfigMapFromSystemProperties()
public String getQueuePrefix()
AmazonSQSConfig
getQueuePrefix
in interface AmazonSQSConfig
public com.amazonaws.regions.Regions getRegion()
AmazonSQSConfig
getRegion
in interface AmazonSQSConfig
public boolean hasStaticCredentials()
AmazonSQSConfig
true
if both an access key and secret key have been set.hasStaticCredentials
in interface AmazonSQSConfig
true
if both an access key and secret key have been set, false
otherwise.public String getAccessKey()
AmazonSQSConfig
getAccessKey
in interface AmazonSQSConfig
public String getSecretKey()
AmazonSQSConfig
getSecretKey
in interface AmazonSQSConfig
public boolean isUseHttp()
AmazonSQSConfig
isUseHttp
in interface AmazonSQSConfig
true
if HTTP should be used insetad of HTTPS, false
otherwise.public AmazonSQSQueueConfig getSinkQueueConfig()
AmazonSQSConfig
getSinkQueueConfig
in interface AmazonSQSConfig
public AmazonSQSQueueConfig getRpcQueueConfig()
AmazonSQSConfig
getRpcQueueConfig
in interface AmazonSQSConfig
Copyright © 2020. All rights reserved.