Class Message
- java.lang.Object
-
- org.jclouds.openstack.marconi.v1.domain.Message
-
- Direct Known Subclasses:
ParseMessagesToStream.MessageWithHref
public class Message extends Object
A message to be sent to a queue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Message.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Message.Builder
builder()
boolean
equals(Object obj)
int
getAge()
String
getBody()
com.google.common.base.Optional<String>
getClaimId()
String
getId()
int
getTTL()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Message.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
getId
public String getId()
- Returns:
- The id of this message.
-
getTTL
public int getTTL()
- See Also:
CreateMessage.Builder.ttl(int)
-
getBody
public String getBody()
- See Also:
CreateMessage.Builder.body(String)
-
getAge
public int getAge()
- Returns:
- Age of this message in seconds.
-
getClaimId
public com.google.common.base.Optional<String> getClaimId()
- Returns:
- The claim id of this message.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
builder
public static Message.Builder builder()
-
toBuilder
public Message.Builder toBuilder()
-
-