org.skyscreamer.nevado.jms.connector.mock
Class MockSQSMessage
java.lang.Object
org.skyscreamer.nevado.jms.connector.mock.MockSQSMessage
- All Implemented Interfaces:
- SQSMessage
public class MockSQSMessage
- extends Object
- implements SQSMessage
Mock implementation of an SQSMessage object
- Author:
- Carter Page
- See Also:
MockSQSQueue,
MockSQSConnector
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockSQSMessage
public MockSQSMessage(String body)
getReceiptHandle
public String getReceiptHandle()
- Specified by:
getReceiptHandle in interface SQSMessage
getMessageBody
public String getMessageBody()
- Specified by:
getMessageBody in interface SQSMessage
getMessageId
public String getMessageId()
- Specified by:
getMessageId in interface SQSMessage
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributes in interface SQSMessage
setVisibleAfter
public void setVisibleAfter(long visibleAfter)
isVisible
public boolean isVisible()
getDeliveryCount
public int getDeliveryCount()
incrementDeliveryCount
public void incrementDeliveryCount()
Copyright © 2014. All Rights Reserved.