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(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. |
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 updatedDavException
- if the subscription failsvoid 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
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.