|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SubscriptionManager
SubscriptionManager interface.
| Method Summary | |
|---|---|
SubscriptionDiscovery |
getSubscriptionDiscovery(ObservationResource resource)
Retrieve the SubscriptionDiscovery object for the given
resource. |
EventDiscovery |
poll(String subscriptionId,
long timeout,
ObservationResource resource)
Retrieve the list of events that occurred since the last poll. |
Subscription |
subscribe(SubscriptionInfo info,
String subscriptionId,
ObservationResource resource)
Create a new Subscription or update an existing Subscription.. |
void |
unsubscribe(String subscriptionId,
ObservationResource resource)
Unsubscribe the Subscription with the given id. |
| Method Detail |
|---|
SubscriptionDiscovery getSubscriptionDiscovery(ObservationResource resource)
SubscriptionDiscovery object for the given
resource. Note, that the discovery object will be empty if there are
no subscriptions present.
resource -
Subscription subscribe(SubscriptionInfo info,
String subscriptionId,
ObservationResource resource)
throws DavException
Subscription or update an existing Subscription..
info - subscriptionId - resource -
Subscription that has been created or updated
DavException - if the subscription fails
void unsubscribe(String subscriptionId,
ObservationResource resource)
throws DavException
Subscription with the given id.
subscriptionId - resource -
DavException
EventDiscovery poll(String subscriptionId,
long timeout,
ObservationResource resource)
throws DavException
subscriptionId - identifier for the subscriptiontimeout - the time in milliseconds to wait at most for events
if none is present currently.resource -
DavException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||