public class PublishRequest extends Object
Constructor and Description |
---|
PublishRequest() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getPayload()
Getter for the payload.
|
QueueFullPolicy |
getQueueFullPolicy()
Getter for the queueFullPolicy.
|
String |
getTopic()
Getter for the topic.
|
void |
setPayload(ByteBuffer payload)
Setter for the payload.
|
void |
setQueueFullPolicy(QueueFullPolicy queueFullPolicy)
Setter for the queueFullPolicy.
|
void |
setTopic(String topic)
Setter for the topic.
|
PublishRequest |
withPayload(ByteBuffer p)
Generate the request with payload.
|
PublishRequest |
withQueueFullPolicy(QueueFullPolicy q)
Generate the request with queueFullPolicy.
|
PublishRequest |
withTopic(String t)
Generate the request for a topic.
|
public String getTopic()
public void setTopic(String topic)
topic
- the name of the topicpublic ByteBuffer getPayload()
public void setPayload(ByteBuffer payload)
payload
- the payload bytespublic QueueFullPolicy getQueueFullPolicy()
public void setQueueFullPolicy(QueueFullPolicy queueFullPolicy)
queueFullPolicy
- value of queueFullPolicypublic PublishRequest withTopic(String t)
t
- the name of the topicpublic PublishRequest withPayload(ByteBuffer p)
p
- the payload bytespublic PublishRequest withQueueFullPolicy(QueueFullPolicy q)
q
- the queueFullPolicy type