public class MockSQSQueue extends Object implements SQSQueue, ResettableMock
Constructor and Description |
---|
MockSQSQueue(MockSQSConnector connector,
NevadoQueue queue) |
Modifier and Type | Method and Description |
---|---|
void |
deleteMessage(String sqsReceiptHandle) |
void |
deleteQueue() |
NevadoQueue |
getQueue() |
String |
getQueueARN() |
SQSMessage |
receiveMessage() |
void |
reset() |
String |
sendMessage(String body) |
void |
setMessageVisibilityTimeout(String sqsReceiptHandle,
int timeout) |
void |
setPolicy(String policy) |
public MockSQSQueue(MockSQSConnector connector, NevadoQueue queue)
public NevadoQueue getQueue()
public String sendMessage(String body) throws javax.jms.JMSException
sendMessage
in interface SQSQueue
javax.jms.JMSException
public void setMessageVisibilityTimeout(String sqsReceiptHandle, int timeout) throws javax.jms.JMSException
setMessageVisibilityTimeout
in interface SQSQueue
javax.jms.JMSException
public String getQueueARN() throws javax.jms.JMSException
getQueueARN
in interface SQSQueue
javax.jms.JMSException
public void setPolicy(String policy) throws javax.jms.JMSException
public void deleteQueue() throws javax.jms.JMSException
deleteQueue
in interface SQSQueue
javax.jms.JMSException
public void deleteMessage(String sqsReceiptHandle) throws javax.jms.JMSException
deleteMessage
in interface SQSQueue
javax.jms.JMSException
public SQSMessage receiveMessage() throws javax.jms.JMSException
receiveMessage
in interface SQSQueue
javax.jms.JMSException
public void reset()
reset
in interface ResettableMock
Copyright © 2014. All Rights Reserved.