public class Subscription<T> extends Object
| Constructor and Description |
|---|
Subscription(T 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.
|
boolean |
isSubscribed()
Check if somebody is subscribed to us
|
void |
setSource(SubscriptionSource<T> source) |
void |
subscribe(SubscriptionListener<T> listener,
Object hint) |
void |
unsubscribe(SubscriptionListener<T> listener) |
public Subscription(T topic)
public boolean isEmpty()
true if the subscription is empty,
false otherwisepublic boolean isGranted()
true if the subscription is in granted state,
false otherwisepublic boolean isSubscribed()
true if we have listeners, false
otherwisepublic void subscribe(SubscriptionListener<T> listener, Object hint)
public void unsubscribe(SubscriptionListener<T> listener)
public void setSource(SubscriptionSource<T> source)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.