|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISubscriptionService
The service from which to create and destroy subscriptions
Method Summary | |
---|---|
void |
addAttributeValueListener(AttributeDescriptor attributeDescriptor,
IAttributeValueListener listener)
Adds the attribute value listener to the subscription (possible creating it) on given descriptor. |
IAttributeSubscription |
getAttributeSubscription(AttributeDescriptor attributeDescriptor)
Returns the subscription associated with the attribute, if such a subscription exists, or null if no such subscription exists. |
AttributeValueEvent |
getLastAttributeValueEvent(AttributeDescriptor attributeDescriptor)
Returns the last value event for the given attribute through its subscription. |
boolean |
isAttributeUnavailable(AttributeDescriptor attributeDescriptor)
Returns true if a subscription on the attribute has been attempted, but failed, false if either the attribute has not failed or never been subscribed to. |
void |
removeAttributeValueListener(AttributeDescriptor attributeDescriptor,
IAttributeValueListener listener)
Removes the listener from the subscription of given attribute, possible destroying the subscription if this was the last listener. |
void |
removeAttributeValueListener(IAttributeValueListener listener)
Removes the listener from all its subscriptions, possible destroying some or all of the subscriptions if this was the last listener. |
void |
substituteAttributeValueListener(IAttributeValueListener oldListener,
IAttributeValueListener newListener)
Substitutes two listeners. |
Method Detail |
---|
void addAttributeValueListener(AttributeDescriptor attributeDescriptor, IAttributeValueListener listener)
attributeDescriptor
- the attribute on which to listen to value changes.listener
- the attribute value listener to add.void substituteAttributeValueListener(IAttributeValueListener oldListener, IAttributeValueListener newListener)
oldListener
- the old listener to unsubscribe.newListener
- the new listener to subscribe instead.void removeAttributeValueListener(IAttributeValueListener listener)
listener
- the attribute value listener to remove.void removeAttributeValueListener(AttributeDescriptor attributeDescriptor, IAttributeValueListener listener)
attributeDescriptor
- the attribute on which to stop listen to value changes.listener
- the attribute value listener to remove.IAttributeSubscription getAttributeSubscription(AttributeDescriptor attributeDescriptor)
attributeDescriptor
- the descriptor of the attribute to retrieve.
AttributeValueEvent getLastAttributeValueEvent(AttributeDescriptor attributeDescriptor)
attributeDescriptor
- the attribute for which to get the last value event.
boolean isAttributeUnavailable(AttributeDescriptor attributeDescriptor)
attributeDescriptor
- the attribute to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |