public interface SubscriptionStore
Implementation should be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
Subscription |
getSubscription(String subscriptionId)
Retrieves a known subscription or
null if not found. |
Collection<Subscription> |
listSubscriptions()
Returns all known/registered subscriptions.
|
void |
removeSubscription(Subscription subscription)
Removes a registered subscription from the store.
|
void |
storeSubscription(Subscription subscription)
Stores the subscription in the applications data store, replacing any existing subscription
with the same id.
|
Collection<Subscription> listSubscriptions() throws IOException
IOExceptionSubscription getSubscription(String subscriptionId) throws IOException
null if not found.subscriptionId - ID of the subscription to retrieveIOExceptionvoid storeSubscription(Subscription subscription) throws IOException
subscription - New or existing Subscription to store/updateIOExceptionvoid removeSubscription(Subscription subscription) throws IOException
subscription - Subscription to remove or null to ignoreIOExceptionCopyright © 2010-2012 Google. All Rights Reserved.