public class MockSQSConnector extends AbstractSQSConnector implements ResettableMock
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_ATTRIBUTE_RECEIVE_COUNT |
_log, AWS_ERROR_CODE_AUTHENTICATION| Constructor and Description |
|---|
MockSQSConnector() |
MockSQSConnector(long receiveCheckIntervalMs) |
| Modifier and Type | Method and Description |
|---|---|
protected NevadoMessage |
convertSqsMessage(NevadoDestination destination,
SQSMessage sqsMessage,
boolean readOnly) |
NevadoTopic |
createTopic(String topicName) |
void |
deleteTopic(NevadoTopic topic) |
protected MockSQSQueue |
getSQSQueueImpl(NevadoQueue queue) |
Collection<NevadoQueue> |
listQueues(String temporaryQueuePrefix) |
Collection<NevadoTopic> |
listTopics() |
protected void |
removeQueue(NevadoQueue queue) |
void |
reset() |
protected void |
sendSNSMessage(NevadoTopic topic,
String body) |
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_RECEIVE_COUNT
public MockSQSConnector()
public MockSQSConnector(long receiveCheckIntervalMs)
protected void sendSNSMessage(NevadoTopic topic, String body) throws javax.jms.JMSException
sendSNSMessage in class AbstractSQSConnectorjavax.jms.JMSExceptionprotected MockSQSQueue getSQSQueueImpl(NevadoQueue queue) throws javax.jms.JMSException
getSQSQueueImpl in class AbstractSQSConnectorjavax.jms.JMSExceptionpublic void test()
throws javax.jms.JMSException
test in interface SQSConnectorjavax.jms.JMSExceptionpublic Collection<NevadoQueue> listQueues(String temporaryQueuePrefix) throws javax.jms.JMSException
listQueues in interface SQSConnectorjavax.jms.JMSExceptionpublic NevadoTopic createTopic(String topicName) throws javax.jms.JMSException
createTopic in interface SQSConnectorjavax.jms.JMSExceptionpublic void deleteTopic(NevadoTopic topic) throws javax.jms.JMSException
deleteTopic in interface SQSConnectorjavax.jms.JMSExceptionpublic Collection<NevadoTopic> listTopics() throws javax.jms.JMSException
listTopics in interface SQSConnectorjavax.jms.JMSExceptionpublic String subscribe(NevadoTopic topic, NevadoQueue topicEndpoint) throws javax.jms.JMSException
subscribe in interface SQSConnectorjavax.jms.JMSExceptionpublic void unsubscribe(NevadoTopic topic) throws javax.jms.JMSException
unsubscribe in interface SQSConnectorjavax.jms.JMSExceptionpublic void reset()
reset in interface ResettableMockprotected NevadoMessage convertSqsMessage(NevadoDestination destination, SQSMessage sqsMessage, boolean readOnly) throws javax.jms.JMSException
convertSqsMessage in class AbstractSQSConnectorjavax.jms.JMSExceptionprotected void removeQueue(NevadoQueue queue)
Copyright © 2014. All Rights Reserved.