public class Subscription extends Object
| Constructor and Description |
|---|
Subscription(Object topic) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Check if the subscription is empty or nor.
|
boolean |
isGranted()
Check if the subscription is in granted state.
|
void |
setSource(SubscriptionSource source) |
void |
subscribe(SubscriptionListener listener,
Object hint) |
void |
unsubscribe(SubscriptionListener listener) |
public Subscription(Object topic)
public boolean isEmpty()
true if the subscription is empty,
false otherwisepublic boolean isGranted()
true if the subscription is in granted state,
false otherwisepublic void subscribe(SubscriptionListener listener, Object hint)
public void unsubscribe(SubscriptionListener listener)
public void setSource(SubscriptionSource source)