|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface SubscriptionContext
This is the context through which an Entity can manage subscriptions.
Method Summary | |
---|---|
java.util.Set
|
getSubscriptions()
Return the subscriptions associated with this context |
void
|
publish(SensorEvent event)
@see SubscriptionManager#publish(SensorEvent) |
SubscriptionHandle
|
subscribe(java.util.Map flags, Entity producer, Sensor sensor, SensorEventListener listener)
As SubscriptionManager#subscribe(Map, Entity, Sensor, SensorEventListener)#subscribe(Map, Entity, Sensor, SensorEventListener) with default subscription parameters for this context |
SubscriptionHandle
|
subscribe(Entity producer, Sensor sensor, SensorEventListener listener)
@see #subscribe(Map, Entity, Sensor, SensorEventListener) |
SubscriptionHandle
|
subscribeToChildren(java.util.Map flags, Entity parent, Sensor sensor, SensorEventListener listener)
@see #subscribe(Map, Entity, Sensor, SensorEventListener) |
SubscriptionHandle
|
subscribeToChildren(Entity parent, Sensor sensor, SensorEventListener listener)
@see #subscribe(Map, Entity, Sensor, SensorEventListener) |
SubscriptionHandle
|
subscribeToMembers(java.util.Map flags, Group parent, Sensor sensor, SensorEventListener listener)
@see #subscribe(Map, Entity, Sensor, SensorEventListener) |
SubscriptionHandle
|
subscribeToMembers(Group parent, Sensor sensor, SensorEventListener listener)
@see #subscribe(Map, Entity, Sensor, SensorEventListener) |
boolean
|
unsubscribe(SubscriptionHandle subscriptionId)
@see SubscriptionManager#unsubscribe(SubscriptionHandle) |
int
|
unsubscribeAll()
causes all subscriptions to be deregistered |
Method Detail |
---|
public java.util.Set getSubscriptions()
public void publish(SensorEvent event)
public SubscriptionHandle subscribe(java.util.Map flags, Entity producer, Sensor sensor, SensorEventListener listener)
public SubscriptionHandle subscribe(Entity producer, Sensor sensor, SensorEventListener listener)
public SubscriptionHandle subscribeToChildren(java.util.Map flags, Entity parent, Sensor sensor, SensorEventListener listener)
public SubscriptionHandle subscribeToChildren(Entity parent, Sensor sensor, SensorEventListener listener)
public SubscriptionHandle subscribeToMembers(java.util.Map flags, Group parent, Sensor sensor, SensorEventListener listener)
public SubscriptionHandle subscribeToMembers(Group parent, Sensor sensor, SensorEventListener listener)
public boolean unsubscribe(SubscriptionHandle subscriptionId)
public int unsubscribeAll()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.