public class SubscriptionEventImpl extends Object implements SubscriptionEvent
Constructor and Description |
---|
SubscriptionEventImpl(String topic,
SubscriptionState subscriptionState,
Integer qos) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Integer |
getQos()
The granted QoS level from the server.
|
SubscriptionState |
getSubscriptionState()
The new subscription state.
|
String |
getTopic()
The name of the topic this change refers to.
|
int |
hashCode() |
String |
toString() |
public SubscriptionEventImpl(String topic, SubscriptionState subscriptionState, Integer qos)
public Integer getQos()
getQos
in interface SubscriptionEvent
SubscriptionState.SUBSCRIBED
, it contains the QoS level granted by
the server. Otherwise it will be null
.public SubscriptionState getSubscriptionState()
getSubscriptionState
in interface SubscriptionEvent
public String getTopic()
getTopic
in interface SubscriptionEvent
Copyright © 2018–2021 SmallRye. All rights reserved.