Class CreateMessage.Builder
- java.lang.Object
-
- org.jclouds.openstack.marconi.v1.domain.CreateMessage.Builder
-
- Enclosing class:
- CreateMessage
public abstract static class CreateMessage.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CreateMessage.Builder
body(String json)
CreateMessage
build()
CreateMessage.Builder
fromMessage(CreateMessage in)
protected abstract CreateMessage.Builder
self()
CreateMessage.Builder
ttl(int ttl)
-
-
-
Field Detail
-
ttl
protected int ttl
-
body
protected String body
-
-
Method Detail
-
self
protected abstract CreateMessage.Builder self()
-
ttl
public CreateMessage.Builder ttl(int ttl)
- Parameters:
ttl
- The time-to-live of the message in seconds. The ttl attribute specifies how long the server waits before marking the message as expired and removing it from the queue. The valid range of values for the ttl are configurable by your cloud provider. Consult your cloud provider documentation to learn the valid range. Note that the server might not actually delete the message until its age has reached up to (ttl + 60) seconds, to allow for flexibility in storage implementations.
-
body
public CreateMessage.Builder body(String json)
- Parameters:
json
- Specifies an arbitrary JSON document that constitutes the body of the message being sent. The size of the message allowed in one message is configurable by your cloud provider. Consult your cloud provider documentation to learn the valid range.
-
build
public CreateMessage build()
-
fromMessage
public CreateMessage.Builder fromMessage(CreateMessage in)
-
-