@ReconnectOn(exceptions=SQSConnectorException.class) @ConnectionManagement(friendlyName="Configuration") public class Config extends Object
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
void |
connect(String accessKey,
String secretKey,
boolean tryDefaultAWSCredentialsProviderChain) |
void |
disconnect() |
org.mule.modules.sqs.Config.SQSClientBuilder |
getClientBuilder() |
String |
getConnectionId() |
Integer |
getConnectionTimeout() |
String |
getDefaultQueueName() |
com.amazonaws.services.sqs.AmazonSQSClient |
getMsgQueue() |
com.amazonaws.services.sqs.AmazonSQSAsync |
getMsgQueueAsync() |
com.amazonaws.Protocol |
getProtocol() |
String |
getProxyDomain() |
String |
getProxyHost() |
String |
getProxyPassword() |
Integer |
getProxyPort() |
String |
getProxyUsername() |
String |
getProxyWorkstation() |
RegionEndpoint |
getRegion() |
String |
getRoleARN() |
Integer |
getSocketTimeout() |
String |
getUrl() |
String |
getUrl(String queueUrl) |
boolean |
isConnected() |
void |
setConnectionId(String accessKey) |
void |
setConnectionTimeout(Integer connectionTimeout) |
void |
setDefaultQueueName(String defaultQueueName) |
void |
setMsgQueue(com.amazonaws.services.sqs.AmazonSQSClient msgQueue) |
void |
setMsgQueueAsync(com.amazonaws.services.sqs.AmazonSQSAsync msgQueueAsync) |
void |
setProtocol(com.amazonaws.Protocol protocol) |
void |
setProxyDomain(String proxyDomain) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(Integer proxyPort) |
void |
setProxyUsername(String proxyUsername) |
void |
setProxyWorkstation(String proxyWorkstation) |
void |
setRegion(RegionEndpoint region) |
void |
setRoleARN(String roleARN) |
void |
setSocketTimeout(Integer socketTimeout) |
void |
setUrl(String queueUrl) |
void |
testConnect(String accessKey,
String secretKey,
boolean tryDefaultAWSCredentialsProviderChain) |
public org.mule.modules.sqs.Config.SQSClientBuilder getClientBuilder()
@Connect public void connect(@ConnectionKey String accessKey, @NotNull String secretKey, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- AWS access keysecretKey
- AWS secret keytryDefaultAWSCredentialsProviderChain
- Set it to true to try first to obtain credentials from AWS environment. See:
http://docs.aws.amazon.com/java-sdk/latest/developer-guide/credentials.html#using-the-default-credential-provider-chainorg.mule.api.ConnectionException
- If a connection cannot be made due to invalid credentials or if a network connection is not available.@TestConnectivity public void testConnect(@ConnectionKey String accessKey, @NotNull String secretKey, @Optional boolean tryDefaultAWSCredentialsProviderChain) throws org.mule.api.ConnectionException
accessKey
- AWS access keysecretKey
- AWS secret keytryDefaultAWSCredentialsProviderChain
- Set it to true to try first to obtain credentials from AWS environment. See:
http://docs.aws.amazon.com/java-sdk/latest/developer-guide/credentials.html#using-the-default-credential-provider-chainorg.mule.api.ConnectionException
- If a connection cannot be made due to invalid credentials or if a network connection is not available.@ConnectionIdentifier public String getConnectionId()
public void setConnectionId(String accessKey)
@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
public void setUrl(String queueUrl)
public String getUrl()
public String getUrl(String queueUrl) throws SQSConnectorException
SQSConnectorException
public RegionEndpoint getRegion()
public void setRegion(RegionEndpoint region)
public String getRoleARN()
public void setRoleARN(String roleARN)
public com.amazonaws.services.sqs.AmazonSQSClient getMsgQueue()
public void setMsgQueue(com.amazonaws.services.sqs.AmazonSQSClient msgQueue)
public com.amazonaws.services.sqs.AmazonSQSAsync getMsgQueueAsync()
public void setMsgQueueAsync(com.amazonaws.services.sqs.AmazonSQSAsync msgQueueAsync)
public com.amazonaws.Protocol getProtocol()
public void setProtocol(com.amazonaws.Protocol protocol)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public Integer getProxyPort()
public void setProxyPort(Integer proxyPort)
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
public String getProxyDomain()
public void setProxyDomain(String proxyDomain)
public String getProxyWorkstation()
public void setProxyWorkstation(String proxyWorkstation)
public Integer getSocketTimeout()
public void setSocketTimeout(Integer socketTimeout)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
public String getDefaultQueueName()
public void setDefaultQueueName(String defaultQueueName)
Copyright © 2010–2017. All rights reserved.