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