public static interface BrooklynObject.SubscriptionSupport
| Modifier and Type | Method and Description | 
|---|---|
<T> SubscriptionHandle | 
subscribe(Entity producer,
         Sensor<T> sensor,
         SensorEventListener<? super T> listener)
Allow us to subscribe to data from a  
Sensor on another entity. | 
<T> SubscriptionHandle | 
subscribe(java.util.Map<java.lang.String,?> flags,
         Entity producer,
         Sensor<T> sensor,
         SensorEventListener<? super T> listener)
Allow us to subscribe to data from a  
Sensor on another entity. | 
<T> SubscriptionHandle | 
subscribeToChildren(Entity parent,
                   Sensor<T> sensor,
                   SensorEventListener<? super T> listener)  | 
<T> SubscriptionHandle | 
subscribeToMembers(Group group,
                  Sensor<T> sensor,
                  SensorEventListener<? super T> listener)  | 
boolean | 
unsubscribe(Entity producer)
Unsubscribes from the given producer. 
 | 
boolean | 
unsubscribe(Entity producer,
           SubscriptionHandle handle)
Unsubscribes the given handle. 
 | 
boolean | 
unsubscribe(SubscriptionHandle handle)
Unsubscribes the given handle. 
 | 
<T> SubscriptionHandle subscribe(Entity producer, Sensor<T> sensor, SensorEventListener<? super T> listener)
Sensor on another entity.SubscriptionManager.subscribe(Map, Entity, Sensor, SensorEventListener)<T> SubscriptionHandle subscribe(java.util.Map<java.lang.String,?> flags, Entity producer, Sensor<T> sensor, SensorEventListener<? super T> listener)
Sensor on another entity.SubscriptionManager.subscribe(Map, Entity, Sensor, SensorEventListener)<T> SubscriptionHandle subscribeToChildren(Entity parent, Sensor<T> sensor, SensorEventListener<? super T> listener)
<T> SubscriptionHandle subscribeToMembers(Group group, Sensor<T> sensor, SensorEventListener<? super T> listener)
boolean unsubscribe(Entity producer)
boolean unsubscribe(Entity producer, SubscriptionHandle handle)
boolean unsubscribe(SubscriptionHandle handle)
unsubscribe(Entity, SubscriptionHandle)