public abstract class Notification extends Object
Implementation is thread-safe.
Modifier | Constructor and Description |
---|---|
protected |
Notification(Notification source)
Creates a new notification by copying all information specified in the source notification.
|
protected |
Notification(String subscriptionId,
String topicId,
String topicURI,
String clientToken,
long messageNumber,
String eventType,
String changeType) |
Modifier and Type | Method and Description |
---|---|
String |
getChangeType()
Returns the type of change performed on the resource or
null for none. |
String |
getClientToken()
Returns the client token (an opaque string) or
null for none. |
String |
getEventType()
Returns the event type (see
EventTypes ). |
long |
getMessageNumber()
Returns the message number (a monotonically increasing value starting with 1).
|
String |
getSubscriptionId()
Returns the subscription UUID.
|
String |
getTopicId()
Returns the opaque ID for the subscribed resource that is stable across API versions.
|
String |
getTopicURI()
Returns the opaque ID (in the form of a canonicalized URI) for the subscribed resource that is
sensitive to the API version.
|
protected Notification(String subscriptionId, String topicId, String topicURI, String clientToken, long messageNumber, String eventType, String changeType)
subscriptionId
- subscription UUIDtopicId
- opaque ID for the subscribed resource that is stable across API versionstopicURI
- opaque ID (in the form of a canonicalized URI) for the subscribed resource that
is sensitive to the API versionclientToken
- client token (an opaque string) or null
for nonemessageNumber
- message number (a monotonically increasing value starting with 1)eventType
- event type (see EventTypes
)changeType
- type of change performed on the resource or null
for noneprotected Notification(Notification source)
source
- notification whose information is copiedpublic final String getSubscriptionId()
public final String getTopicId()
public final String getClientToken()
null
for none.public final String getEventType()
EventTypes
).public final String getTopicURI()
public final long getMessageNumber()
public final String getChangeType()
null
for none.Copyright © 2010-2013 Google. All Rights Reserved.