public class PublishRequest extends Object
Constructor and Description |
---|
PublishRequest() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getPayload()
Getter for the payload.
|
String |
getTopic()
Getter for the topic.
|
void |
setPayload(ByteBuffer payload)
Setter for the payload.
|
void |
setTopic(String topic)
Setter for the topic.
|
PublishRequest |
withPayload(ByteBuffer p)
Generate the request with payload.
|
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 PublishRequest withTopic(String t)
t
- the name of the topicpublic PublishRequest withPayload(ByteBuffer p)
p
- the payload bytes