A wrapper type for the attributes of an SNS subscription.
Subscription
defines a marker interface for an event subscription. An implemementation will likely keep information in this object about the last consumed events and other implementation specific data. A client will usually first create an event filter and then a subscription based on the filter. Events can then be retrieved by calling {@link RepositoryService#getEvents(Subscription,long)}. If a subscription is no longer needed a client should call {@link RepositoryService#dispose(Subscription)}.
Subscription
represents public representation of the event listener created (or modified) by a successful SUBSCRIBE request.XmlSerializable
interface. The Xml representation of a Subscription
is returned in the response to a successful SUBSCRIBE request as well as in a PROPFIND request. In both cases the subscription is packed into a {@link SubscriptionDiscovery} property object.
Java class for Subscription type. @author Kurt T Stam
JPA entity class for the MAILREADER_SUBSCRIPTIONS
table.
The main reason we have Subscriptions as TimerTasks is to enable proper cleanup of the references stored in the _subscriptions Map when the Subscription expires. The timer also causes QmfAgenData that have been updated since the last interval to be published.
The following diagram illustrates the Subscription relationships with the Agent and QmfAgentData.
@author Fraser Adams
A Subscription which is stored, along with the associated {@link User}, in a {@link UserDatabase}.
@version $Rev: 421161 $ $Date: 2006-07-11 23:18:44 -0700 (Tue, 11 Jul 2006) $A Subscription which is stored, along with the associated {@link User}, in a {@link UserDatabase}.
@version $Rev: 54929 $ $Date: 2004-10-16 09:38:42 -0700 (Sat, 16 Oct 2004) $A Subscription which is stored, along with the associated {@link User}, in a {@link UserDatabase}.
@author Craig R. McClanahan @version $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $A Subscription which is stored, along with the associated {@link User}, in a {@link UserDatabase}.
@author Craig R. McClanahan @version $Rev: 421494 $ $Date: 2006-07-12 20:55:17 -0700 (Wed, 12 Jul 2006) $It can only be used once by a single {@link Subscriber}.
It is used to both signal desire for data and cancel demand (and allow resource cleanup).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|