org.skyscreamer.nevado.jms.connector.mock
Class MockSQSMessage

java.lang.Object
  extended by 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

Constructor Summary
MockSQSMessage(String body)
           
 
Method Summary
 Map<String,String> getAttributes()
           
 int getDeliveryCount()
           
 String getMessageBody()
           
 String getMessageId()
           
 String getReceiptHandle()
           
 void incrementDeliveryCount()
           
 boolean isVisible()
           
 void setVisibleAfter(long visibleAfter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockSQSMessage

public MockSQSMessage(String body)
Method Detail

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.