public class PublishRequest
extends java.lang.Object
Constructor and Description |
---|
PublishRequest() |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getPayload()
Getter for the payload.
|
java.lang.String |
getTopic()
Getter for the topic.
|
void |
setPayload(java.nio.ByteBuffer payload)
Setter for the payload.
|
void |
setTopic(java.lang.String topic)
Setter for the topic.
|
PublishRequest |
withPayload(java.nio.ByteBuffer p)
Generate the request with payload.
|
PublishRequest |
withTopic(java.lang.String t)
Generate the request for a topic.
|
public java.lang.String getTopic()
public void setTopic(java.lang.String topic)
topic
- the name of the topicpublic java.nio.ByteBuffer getPayload()
public void setPayload(java.nio.ByteBuffer payload)
payload
- the payload bytespublic PublishRequest withTopic(java.lang.String t)
t
- the name of the topicpublic PublishRequest withPayload(java.nio.ByteBuffer p)
p
- the payload bytes