public class SubscriptionTracker
extends java.lang.Object
Constructor and Description |
---|
SubscriptionTracker(SubscriptionContext subscriptionContext) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<SubscriptionHandle> |
getAllSubscriptions() |
<T> SubscriptionHandle |
subscribe(Entity producer,
Sensor<T> sensor,
SensorEventListener<? super T> listener) |
<T> SubscriptionHandle |
subscribeToChildren(Entity parent,
Sensor<T> sensor,
SensorEventListener<? super T> listener) |
<T> SubscriptionHandle |
subscribeToMembers(Group parent,
Sensor<T> sensor,
SensorEventListener<? super T> listener) |
boolean |
unsubscribe(Entity producer)
Unsubscribes the given producer.
|
boolean |
unsubscribe(Entity producer,
SubscriptionHandle handle)
Unsubscribes the given producer.
|
void |
unsubscribeAll() |
public SubscriptionTracker(SubscriptionContext subscriptionContext)
public <T> SubscriptionHandle subscribe(Entity producer, Sensor<T> sensor, SensorEventListener<? super T> listener)
public <T> SubscriptionHandle subscribeToChildren(Entity parent, Sensor<T> sensor, SensorEventListener<? super T> listener)
public <T> SubscriptionHandle subscribeToMembers(Group parent, Sensor<T> sensor, SensorEventListener<? super T> listener)
public boolean unsubscribe(Entity producer)
public boolean unsubscribe(Entity producer, SubscriptionHandle handle)
public java.util.Collection<SubscriptionHandle> getAllSubscriptions()
public void unsubscribeAll()