public interface SubscriptionManager
SubscriptionManager interface.| Modifier and Type | Method and Description |
|---|---|
SubscriptionDiscovery |
getSubscriptionDiscovery(ObservationResource resource)
Retrieve the
SubscriptionDiscovery object for the given
resource. |
EventDiscovery |
poll(java.lang.String subscriptionId,
long timeout,
ObservationResource resource)
Retrieve the list of events that occurred since the last poll.
|
Subscription |
subscribe(SubscriptionInfo info,
java.lang.String subscriptionId,
ObservationResource resource)
Create a new
Subscription or update an existing Subscription.. |
void |
unsubscribe(java.lang.String subscriptionId,
ObservationResource resource)
Unsubscribe the
Subscription with the given id. |
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, java.lang.String subscriptionId, ObservationResource resource) throws DavException
Subscription or update an existing Subscription..info - subscriptionId - resource - Subscription that has been created or updatedDavException - if the subscription failsvoid unsubscribe(java.lang.String subscriptionId,
ObservationResource resource)
throws DavException
Subscription with the given id.subscriptionId - resource - DavExceptionEventDiscovery poll(java.lang.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 - DavExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved