Mqtt5PublishBuilder will check messageExpiryInterval parameter in its builder method, which results in assertion failure if PublishingOptions.messageExpiryInterval is left unspecified or maintained at its default setting.
Using Mqtt5PublishBuilder#noMessageExpiry() to explicitly denote "no message expiry" when retaining the default messageExpiryInterval.
This fixes #18.
The upstream have introduced a special value -1 to disable message expiry in Mqtt5PublishBuilder.messageExpiryInterval, but haven't released so far.
References: hivemq/hivemq-mqtt-client#580, hivemq/hivemq-mqtt-client#604.
Mqtt5PublishBuilder
will checkmessageExpiryInterval
parameter in its builder method, which results in assertion failure ifPublishingOptions.messageExpiryInterval
is left unspecified or maintained at its default setting. UsingMqtt5PublishBuilder#noMessageExpiry()
to explicitly denote "no message expiry" when retaining the defaultmessageExpiryInterval
. This fixes #18. The upstream have introduced a special value-1
to disable message expiry inMqtt5PublishBuilder.messageExpiryInterval
, but haven't released so far. References: hivemq/hivemq-mqtt-client#580, hivemq/hivemq-mqtt-client#604.