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