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 classMessage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Message.Builderbuilder()booleanequals(Object obj)intgetAge()StringgetBody()com.google.common.base.Optional<String>getClaimId()StringgetId()intgetTTL()inthashCode()protected com.google.common.base.MoreObjects.ToStringHelperstring()Message.BuildertoBuilder()StringtoString()
-
-
-
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()
-
-