Class SubscriptionEventImpl
java.lang.Object
io.smallrye.reactive.messaging.mqtt.session.impl.SubscriptionEventImpl
- All Implemented Interfaces:
SubscriptionEvent
An event of a subscription state change.
-
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionEventImpl(String topic, SubscriptionState subscriptionState, Integer qos) -
Method Summary
-
Constructor Details
-
SubscriptionEventImpl
-
-
Method Details
-
getQos
The granted QoS level from the server.- Specified by:
getQosin interfaceSubscriptionEvent- Returns:
- When the state changed to
SubscriptionState.SUBSCRIBED, it contains the QoS level granted by the server. Otherwise it will benull.
-
getSubscriptionState
The new subscription state.- Specified by:
getSubscriptionStatein interfaceSubscriptionEvent- Returns:
- The state.
-
getTopic
The name of the topic this change refers to.- Specified by:
getTopicin interfaceSubscriptionEvent- Returns:
- The topic name.
-
equals
-
hashCode
public int hashCode() -
toString
-