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, serializeMessage
public 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 AbstractSQSConnector
javax.jms.JMSException
protected MockSQSQueue getSQSQueueImpl(NevadoQueue queue) throws javax.jms.JMSException
getSQSQueueImpl
in class AbstractSQSConnector
javax.jms.JMSException
public void test() throws javax.jms.JMSException
test
in interface SQSConnector
javax.jms.JMSException
public Collection<NevadoQueue> listQueues(String temporaryQueuePrefix) throws javax.jms.JMSException
listQueues
in interface SQSConnector
javax.jms.JMSException
public NevadoTopic createTopic(String topicName) throws javax.jms.JMSException
createTopic
in interface SQSConnector
javax.jms.JMSException
public void deleteTopic(NevadoTopic topic) throws javax.jms.JMSException
deleteTopic
in interface SQSConnector
javax.jms.JMSException
public Collection<NevadoTopic> listTopics() throws javax.jms.JMSException
listTopics
in interface SQSConnector
javax.jms.JMSException
public String subscribe(NevadoTopic topic, NevadoQueue topicEndpoint) throws javax.jms.JMSException
subscribe
in interface SQSConnector
javax.jms.JMSException
public void unsubscribe(NevadoTopic topic) throws javax.jms.JMSException
unsubscribe
in interface SQSConnector
javax.jms.JMSException
public void reset()
reset
in interface ResettableMock
protected NevadoMessage convertSqsMessage(NevadoDestination destination, SQSMessage sqsMessage, boolean readOnly) throws javax.jms.JMSException
convertSqsMessage
in class AbstractSQSConnector
javax.jms.JMSException
protected void removeQueue(NevadoQueue queue)
Copyright © 2014. All Rights Reserved.