org.skyscreamer.nevado.jms.connector.mock
Class MockSQSQueue
java.lang.Object
org.skyscreamer.nevado.jms.connector.mock.MockSQSQueue
- All Implemented Interfaces:
- SQSQueue
public class MockSQSQueue
- extends Object
- implements SQSQueue
Mock implementation of an SQSQueue. Intended for testing and development.
- Author:
- Carter Page
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockSQSQueue
public MockSQSQueue(MockSQSConnector connector,
NevadoQueue queue)
getQueue
public NevadoQueue getQueue()
sendMessage
public String sendMessage(String body)
throws javax.jms.JMSException
- Specified by:
sendMessage in interface SQSQueue
- Throws:
javax.jms.JMSException
setMessageVisibilityTimeout
public void setMessageVisibilityTimeout(String sqsReceiptHandle,
int timeout)
throws javax.jms.JMSException
- Specified by:
setMessageVisibilityTimeout in interface SQSQueue
- Throws:
javax.jms.JMSException
getQueueARN
public String getQueueARN()
throws javax.jms.JMSException
- Specified by:
getQueueARN in interface SQSQueue
- Throws:
javax.jms.JMSException
setPolicy
public void setPolicy(String policy)
throws javax.jms.JMSException
- Specified by:
setPolicy in interface SQSQueue
- Throws:
javax.jms.JMSException
deleteQueue
public void deleteQueue()
throws javax.jms.JMSException
- Specified by:
deleteQueue in interface SQSQueue
- Throws:
javax.jms.JMSException
deleteMessage
public void deleteMessage(String sqsReceiptHandle)
throws javax.jms.JMSException
- Specified by:
deleteMessage in interface SQSQueue
- Throws:
javax.jms.JMSException
receiveMessage
public SQSMessage receiveMessage()
throws javax.jms.JMSException
- Specified by:
receiveMessage in interface SQSQueue
- Throws:
javax.jms.JMSException
Copyright © 2012. All Rights Reserved.