public abstract static class CreateMessage.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
body |
protected int |
ttl |
Constructor and Description |
---|
CreateMessage.Builder() |
Modifier and Type | Method and Description |
---|---|
CreateMessage.Builder |
body(String json) |
CreateMessage |
build() |
CreateMessage.Builder |
fromMessage(CreateMessage in) |
protected abstract CreateMessage.Builder |
self() |
CreateMessage.Builder |
ttl(int ttl) |
protected int ttl
protected String body
protected abstract CreateMessage.Builder self()
public CreateMessage.Builder ttl(int ttl)
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.public CreateMessage.Builder body(String json)
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.public CreateMessage build()
public CreateMessage.Builder fromMessage(CreateMessage in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.