Class SubscribePacket.Subscription

  • Enclosing class:
    SubscribePacket

    public static final class SubscribePacket.Subscription
    extends java.lang.Object
    Configures a single subscription within a Subscribe operation See MQTT5 Subscription Options
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Boolean getNoLocal()
      Returns whether the server should not send publishes to a client when that client was the one who sent the publish.
      QOS getQOS()
      Returns the maximum QoS on which the subscriber will accept publish messages.
      java.lang.Boolean getRetainAsPublished()
      Returns whether messages sent due to this subscription keep the retain flag preserved on the message.
      SubscribePacket.RetainHandlingType getRetainHandlingType()
      Returns whether retained messages on matching topics be sent in reaction to this subscription.
      java.lang.String getTopicFilter()
      Returns the topic filter to subscribe to See MQTT5 Subscription Options
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTopicFilter

        public java.lang.String getTopicFilter()
        Returns the topic filter to subscribe to See MQTT5 Subscription Options
        Returns:
        The topic filter to subscribe to
      • getQOS

        public QOS getQOS()
        Returns the maximum QoS on which the subscriber will accept publish messages. Negotiated QoS may be different. See MQTT5 Subscription Options
        Returns:
        The maximum QoS on which the subscriber will accept publish messages
      • getNoLocal

        public java.lang.Boolean getNoLocal()
        Returns whether the server should not send publishes to a client when that client was the one who sent the publish. If null, this is assumed to be false. See MQTT5 Subscription Options
        Returns:
        Whether the server will not send publishes to a client when that client was the one who sent the publish
      • getRetainAsPublished

        public java.lang.Boolean getRetainAsPublished()
        Returns whether messages sent due to this subscription keep the retain flag preserved on the message. If null, this is assumed to be false. See MQTT5 Subscription Options
        Returns:
        Whether messages sent due to this subscription keep the retain flag preserved on the message
      • getRetainHandlingType

        public SubscribePacket.RetainHandlingType getRetainHandlingType()
        Returns whether retained messages on matching topics be sent in reaction to this subscription. If null, this is assumed to be RetainHandlingType.SendOnSubscribe. See MQTT5 Subscription Options
        Returns:
        Whether retained messages on matching topics be sent in reaction to this subscription