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, serializeMessagepublic 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 AbstractSQSConnectorjavax.jms.JMSExceptionprotected AmazonAwsSQSQueue getSQSQueueImpl(NevadoQueue queue) throws javax.jms.JMSException
getSQSQueueImpl in class AbstractSQSConnectorjavax.jms.JMSExceptionpublic void test()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic Collection<NevadoQueue> listQueues(String temporaryQueuePrefix) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic NevadoTopic createTopic(String topicName) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void deleteTopic(NevadoTopic topic) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic Collection<NevadoTopic> listTopics() throws javax.jms.JMSException
javax.jms.JMSExceptionpublic String subscribe(NevadoTopic topic, NevadoQueue topicEndpoint) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void unsubscribe(NevadoTopic topic) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected NevadoMessage convertSqsMessage(NevadoDestination destination, SQSMessage sqsMessage, boolean readOnly) throws javax.jms.JMSException
convertSqsMessage in class AbstractSQSConnectorjavax.jms.JMSExceptionpublic com.amazonaws.services.sqs.AmazonSQS getAmazonSQS()
public com.amazonaws.services.sns.AmazonSNS getAmazonSNS()
protected String getTopicARN(NevadoTopic topic) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected javax.jms.JMSException handleAWSException(String message, com.amazonaws.AmazonClientException e)
Copyright © 2014. All Rights Reserved.