public class AmazonAwsSQSConnector extends AbstractSQSConnector
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE_ATTRIBUTE_APPROXIMATE_RECEIVE_COUNT |
_log, AWS_ERROR_CODE_AUTHENTICATION
Constructor and Description |
---|
AmazonAwsSQSConnector(String awsAccessKey,
String awsSecretKey,
boolean isSecure,
long receiveCheckIntervalMs) |
AmazonAwsSQSConnector(String awsAccessKey,
String awsSecretKey,
boolean isSecure,
long receiveCheckIntervalMs,
boolean isAsync) |
Modifier and Type | Method and Description |
---|---|
protected NevadoMessage |
convertSqsMessage(NevadoDestination destination,
SQSMessage sqsMessage,
boolean readOnly) |
NevadoTopic |
createTopic(String topicName) |
void |
deleteTopic(NevadoTopic topic) |
com.amazonaws.services.sns.AmazonSNS |
getAmazonSNS() |
com.amazonaws.services.sqs.AmazonSQS |
getAmazonSQS() |
protected AmazonAwsSQSQueue |
getSQSQueueImpl(NevadoQueue queue) |
protected String |
getTopicARN(NevadoTopic topic) |
protected javax.jms.JMSException |
handleAWSException(String message,
com.amazonaws.AmazonClientException e) |
Collection<NevadoQueue> |
listQueues(String temporaryQueuePrefix) |
Collection<NevadoTopic> |
listTopics() |
protected void |
sendSNSMessage(NevadoTopic topic,
String serializedMessage) |
String |
subscribe(NevadoTopic topic,
NevadoQueue topicEndpoint) |
void |
test() |
void |
unsubscribe(NevadoTopic topic) |
createQueue, deleteMessage, deleteQueue, deserializeMessage, getPolicy, getSQSQueue, isAsync, receiveMessage, receiveSQSMessage, resetMessage, sendMessage, sendMessages, sendSQSMessage, serializeMessage
public static final String MESSAGE_ATTRIBUTE_APPROXIMATE_RECEIVE_COUNT
public AmazonAwsSQSConnector(String awsAccessKey, String awsSecretKey, boolean isSecure, long receiveCheckIntervalMs)
protected void sendSNSMessage(NevadoTopic topic, String serializedMessage) throws javax.jms.JMSException
sendSNSMessage
in class AbstractSQSConnector
javax.jms.JMSException
protected AmazonAwsSQSQueue getSQSQueueImpl(NevadoQueue queue) throws javax.jms.JMSException
getSQSQueueImpl
in class AbstractSQSConnector
javax.jms.JMSException
public void test() throws javax.jms.JMSException
javax.jms.JMSException
public Collection<NevadoQueue> listQueues(String temporaryQueuePrefix) throws javax.jms.JMSException
javax.jms.JMSException
public NevadoTopic createTopic(String topicName) throws javax.jms.JMSException
javax.jms.JMSException
public void deleteTopic(NevadoTopic topic) throws javax.jms.JMSException
javax.jms.JMSException
public Collection<NevadoTopic> listTopics() throws javax.jms.JMSException
javax.jms.JMSException
public String subscribe(NevadoTopic topic, NevadoQueue topicEndpoint) throws javax.jms.JMSException
javax.jms.JMSException
public void unsubscribe(NevadoTopic topic) throws javax.jms.JMSException
javax.jms.JMSException
protected NevadoMessage convertSqsMessage(NevadoDestination destination, SQSMessage sqsMessage, boolean readOnly) throws javax.jms.JMSException
convertSqsMessage
in class AbstractSQSConnector
javax.jms.JMSException
public com.amazonaws.services.sqs.AmazonSQS getAmazonSQS()
public com.amazonaws.services.sns.AmazonSNS getAmazonSNS()
protected String getTopicARN(NevadoTopic topic) throws javax.jms.JMSException
javax.jms.JMSException
protected javax.jms.JMSException handleAWSException(String message, com.amazonaws.AmazonClientException e)
Copyright © 2014. All Rights Reserved.