PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withContentType(String contentType) |
Sets the property specifying the content type of the payload.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withCorrelationData(byte[] correlationData) |
Sets the opaque binary data used to correlate between publish messages, as a potential method for request-response
implementation.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withMessageExpiryIntervalSeconds(Long messageExpiryIntervalSeconds) |
Sets the maximum amount of time allowed to elapse for message delivery before the server
should instead delete the message (relative to a recipient).
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withPayload(byte[] payload) |
Sets the payload for the publish message.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withPayloadFormat(PublishPacket.PayloadFormatIndicator payloadFormat) |
Sets the property specifying the format of the payload data.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withQOS(QOS packetQOS) |
Sets the MQTT quality of service level the message should be delivered with.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withResponseTopic(String responseTopic) |
Sets the opaque topic string intended to assist with request/response implementations.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withRetain(Boolean retain) |
Sets if this should be a retained message.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withTopic(String topic) |
Sets the topic this message should be published to.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withTopicAlias(long topicAlias) |
Sets the topic alias to use when sending this publish.
|
PublishPacket.PublishPacketBuilder |
PublishPacket.PublishPacketBuilder.withUserProperties(List<UserProperty> userProperties) |
Sets the list of MQTT5 user properties included with the packet.
|