| Package | Description |
|---|---|
| com.google.api.client.googleapis.notifications |
Beta Support for notification channels to listen for changes to watched Google API resources. |
| com.google.api.client.googleapis.testing.notifications |
Beta Test utilities for the com.google.api.client.googleapis.notifications package. |
| Modifier and Type | Method and Description |
|---|---|
StoredChannel |
StoredChannel.setClientToken(String clientToken)
Sets the the arbitrary string provided by the client associated with this subscription that is
delivered to the target address with each notification or
null for none. |
StoredChannel |
StoredChannel.setExpiration(Long expiration)
Sets the milliseconds in Unix time at which the subscription will expire or
null for an
infinite TTL. |
StoredChannel |
StoredChannel.setTopicId(String topicId)
Sets the opaque ID for the subscribed resource that is stable across API versions or
null for none. |
StoredChannel |
StoredChannel.store(com.google.api.client.util.store.DataStore<StoredChannel> dataStore)
Stores this notification channel in the given notification channel data store.
|
StoredChannel |
StoredChannel.store(com.google.api.client.util.store.DataStoreFactory dataStoreFactory)
Stores this notification channel in the notification channel data store, which is derived from
getDefaultDataStore(DataStoreFactory) on the given data store factory. |
| Modifier and Type | Method and Description |
|---|---|
static com.google.api.client.util.store.DataStore<StoredChannel> |
StoredChannel.getDefaultDataStore(com.google.api.client.util.store.DataStoreFactory dataStoreFactory)
Returns the stored channel data store using the ID
DEFAULT_DATA_STORE_ID. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
TypedNotificationCallback.onNotification(StoredChannel storedChannel,
TypedNotification<T> notification)
Handles a received typed notification.
|
void |
UnparsedNotificationCallback.onNotification(StoredChannel storedChannel,
UnparsedNotification notification)
Handles a received unparsed notification.
|
void |
TypedNotificationCallback.onNotification(StoredChannel storedChannel,
UnparsedNotification notification) |
| Modifier and Type | Method and Description |
|---|---|
StoredChannel |
StoredChannel.store(com.google.api.client.util.store.DataStore<StoredChannel> dataStore)
Stores this notification channel in the given notification channel data store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MockUnparsedNotificationCallback.onNotification(StoredChannel storedChannel,
UnparsedNotification notification) |
Copyright © 2010–2019 Google. All rights reserved.