Class MqttUnsubscribeMessage

java.lang.Object
io.vertx.mutiny.mqtt.messages.MqttUnsubscribeMessage
All Implemented Interfaces:
MutinyDelegate, MqttMessage

public class MqttUnsubscribeMessage extends Object implements MqttMessage, MutinyDelegate
Represents an MQTT UNSUBSCRIBE message

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

See Also:
  • MqttUnsubscribeMessage
  • Field Details

  • Constructor Details

    • MqttUnsubscribeMessage

      public MqttUnsubscribeMessage(io.vertx.mqtt.messages.MqttUnsubscribeMessage delegate)
      Create a new instance of MqttUnsubscribeMessage delegating to the given (non-null) instance of MqttUnsubscribeMessage.
    • MqttUnsubscribeMessage

      public MqttUnsubscribeMessage(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.mqtt.messages.MqttUnsubscribeMessage getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MqttMessage
      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • create

      public static MqttUnsubscribeMessage create(int messageId, List<String> topics, io.netty.handler.codec.mqtt.MqttProperties properties)
      Create a concrete instance of a Vert.x unsubscribe message
      Parameters:
      messageId - message identifier
      topics - list of topics to unsubscribe
      properties - UNSUBSCRIBE message properties
    • topics

      public List<String> topics()
      Returns:
      List of topics to unsubscribe
    • properties

      public io.netty.handler.codec.mqtt.MqttProperties properties()
      Returns:
      MQTT properties
    • messageId

      public int messageId()
      Specified by:
      messageId in interface MqttMessage
      Returns:
      Message identifier
    • newInstance

      public static MqttUnsubscribeMessage newInstance(io.vertx.mqtt.messages.MqttUnsubscribeMessage delegate)
      Creates a new instance of the MqttUnsubscribeMessage.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object