Interface Mqtt5PublishResult

All Known Subinterfaces:
Mqtt5PublishResult.Mqtt5Qos1Result, Mqtt5PublishResult.Mqtt5Qos2CompleteResult, Mqtt5PublishResult.Mqtt5Qos2Result

@DoNotImplement public interface Mqtt5PublishResult
Result for an MQTT 5 Publish message sent by the client.

The result is provided if a Publish message is successfully delivered (sent or acknowledged respectively to its QoS level).

Since:
1.0
  • Method Details

    • getPublish

      @NotNull @NotNull Mqtt5Publish getPublish()
      Returns:
      the Publish message this result is for.
    • getError

      @NotNull @NotNull Optional<Throwable> getError()
      Returns:
      the optional error that is present if the Publish message was not successfully delivered.