public class Subscription
extends java.lang.Object
| Constructor and Description |
|---|
Subscription(FrameListener receiver,
SubscriptionChangeListener changeReceiver)
Creates a new Subscription.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all identifiers from the subscription.
|
void |
deliverFrame(Frame frame,
Bus bus) |
java.util.Set<java.lang.Integer> |
getAllIdentifiers(boolean extended) |
java.lang.Boolean |
getSubscribeAll()
Returns true if all IDs are subscribed by this Subscription
|
boolean |
includes(int id,
boolean extended) |
java.lang.Boolean |
isMuted() |
void |
setMuted(java.lang.Boolean muted) |
void |
setSubscribeAll(java.lang.Boolean subscribeAll) |
void |
subscribe(int id,
boolean extended)
Subscribe for a single identifier
|
void |
Terminate()
Informs the
SubscriptionChangeReceiver that the Subscription
will not be used anymore and no more Frames shall be received. |
void |
unsubscribe(int id,
boolean extended)
Remove a single identifier from the subscription.
|
public Subscription(FrameListener receiver, SubscriptionChangeListener changeReceiver)
SubscriptionChangeReceiver.receiver - changeReceiver - public void subscribe(int id,
boolean extended)
id - identifierpublic void clear()
public void unsubscribe(int id,
boolean extended)
id - public java.lang.Boolean isMuted()
public void setMuted(java.lang.Boolean muted)
public boolean includes(int id,
boolean extended)
public void setSubscribeAll(java.lang.Boolean subscribeAll)
public java.lang.Boolean getSubscribeAll()
public java.util.Set<java.lang.Integer> getAllIdentifiers(boolean extended)
public void Terminate()
SubscriptionChangeReceiver that the Subscription
will not be used anymore and no more Frames shall be received.Data In Motion Consulting GmbH