net.sf.xenqtt
Class MqttQosNotGrantedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.xenqtt.MqttException
                  extended by net.sf.xenqtt.MqttQosNotGrantedException
All Implemented Interfaces:
Serializable

public final class MqttQosNotGrantedException
extends MqttException

Thrown by synchronous MqttClient.subscribe(java.util.List) and MqttClient.subscribe(Subscription[]) methods when the QoS granted for a subscription request does not match the QoS requested.

See Also:
Serialized Form

Constructor Summary
MqttQosNotGrantedException(Subscription[] grantedSubscriptions)
          Create a new instance of this class.
 
Method Summary
 Subscription[] getGrantedSubscriptions()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MqttQosNotGrantedException

public MqttQosNotGrantedException(Subscription[] grantedSubscriptions)
Create a new instance of this class.

Parameters:
grantedSubscriptions - The subscriptions for which the QOS was not granted
Method Detail

getGrantedSubscriptions

public Subscription[] getGrantedSubscriptions()
Returns:
The topics subscribed to and the QoS granted for each


Copyright © 2013. All Rights Reserved.