com.esf.net.mqtt.client.service
Class EsfMqttSubscription

java.lang.Object
  extended by com.esf.net.mqtt.client.service.EsfMqttSubscription

public class EsfMqttSubscription
extends java.lang.Object

A container class for the values associated with an MQtt subscription.

Author:
eurotech

Constructor Summary
EsfMqttSubscription()
          The default constructor.
EsfMqttSubscription(java.lang.String topic, int qos)
          A constructor method specifying the topic and QoS for the subscription.
 
Method Summary
 boolean equals(EsfMqttSubscription sub)
           
 int getQos()
          Returns the Quality of Service topic.
 java.lang.String getTopic()
          Returns the subscription topic.
 void setQos(int qos)
          Sets the Quality of Service topic.
 void setTopic(java.lang.String topic)
          Sets the subscription topic.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EsfMqttSubscription

public EsfMqttSubscription()
The default constructor.


EsfMqttSubscription

public EsfMqttSubscription(java.lang.String topic,
                           int qos)
A constructor method specifying the topic and QoS for the subscription.

Parameters:
topic - A String object containing the topic.
qos - An integer indicating the Quality of Service.
Method Detail

getTopic

public java.lang.String getTopic()
Returns the subscription topic.

Returns:
A String object containing the topic.

setTopic

public void setTopic(java.lang.String topic)
Sets the subscription topic.

Parameters:
topic - A String object containing the topic.

getQos

public int getQos()
Returns the Quality of Service topic.

Returns:
An integer indicating the Quality of Service.

setQos

public void setQos(int qos)
Sets the Quality of Service topic.

Parameters:
qos - An integer indicating the Quality of Service.

equals

public boolean equals(EsfMqttSubscription sub)