|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.webdav.jcr.observation.SubscriptionManagerImpl
SubscriptionManager
collects all subscriptions requested, handles
the subscription timeout and provides METHODS to discover subscriptions
present on a given resource as well as events for an specific subscription.
Constructor Summary | |
SubscriptionManagerImpl()
|
Method Summary | |
org.apache.jackrabbit.webdav.observation.SubscriptionDiscovery |
getSubscriptionDiscovery(org.apache.jackrabbit.webdav.observation.ObservationResource resource)
Retrieve the SubscriptionDiscovery object for the given
resource. |
org.apache.jackrabbit.webdav.observation.EventDiscovery |
poll(String subscriptionId,
org.apache.jackrabbit.webdav.observation.ObservationResource resource)
Retrieve all event bundles accumulated since for the subscription specified by the given id. |
org.apache.jackrabbit.webdav.observation.Subscription |
subscribe(org.apache.jackrabbit.webdav.observation.SubscriptionInfo info,
String subscriptionId,
org.apache.jackrabbit.webdav.observation.ObservationResource resource)
Create a new Subscription or update an existing Subscription
and add it as eventlistener to the ObservationManager . |
void |
unsubscribe(String subscriptionId,
org.apache.jackrabbit.webdav.observation.ObservationResource resource)
Unsubscribe the Subscription with the given id and remove it
from the ObservationManager as well as
from the internal map. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubscriptionManagerImpl()
Method Detail |
public org.apache.jackrabbit.webdav.observation.SubscriptionDiscovery getSubscriptionDiscovery(org.apache.jackrabbit.webdav.observation.ObservationResource resource)
SubscriptionDiscovery
object for the given
resource. Note, that the discovery object will be empty if there are
no subscriptions present.
getSubscriptionDiscovery
in interface org.apache.jackrabbit.webdav.observation.SubscriptionManager
resource
- public org.apache.jackrabbit.webdav.observation.Subscription subscribe(org.apache.jackrabbit.webdav.observation.SubscriptionInfo info, String subscriptionId, org.apache.jackrabbit.webdav.observation.ObservationResource resource) throws org.apache.jackrabbit.webdav.DavException
Subscription
or update an existing Subscription
and add it as eventlistener to the ObservationManager
.
subscribe
in interface org.apache.jackrabbit.webdav.observation.SubscriptionManager
info
- subscriptionId
- resource
-
Subscription
that has been added to the ObservationManager
org.apache.jackrabbit.webdav.DavException
- if the subscription failspublic void unsubscribe(String subscriptionId, org.apache.jackrabbit.webdav.observation.ObservationResource resource) throws org.apache.jackrabbit.webdav.DavException
Subscription
with the given id and remove it
from the ObservationManager
as well as
from the internal map.
unsubscribe
in interface org.apache.jackrabbit.webdav.observation.SubscriptionManager
subscriptionId
- resource
-
org.apache.jackrabbit.webdav.DavException
public org.apache.jackrabbit.webdav.observation.EventDiscovery poll(String subscriptionId, org.apache.jackrabbit.webdav.observation.ObservationResource resource) throws org.apache.jackrabbit.webdav.DavException
poll
in interface org.apache.jackrabbit.webdav.observation.SubscriptionManager
subscriptionId
- resource
-
org.apache.jackrabbit.webdav.DavException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |