@Beta public abstract class AbstractNotification extends Object
Beta
Implementation is not thread-safe.
Modifier | Constructor and Description |
---|---|
protected |
AbstractNotification(AbstractNotification source)
Copy constructor based on a source notification object.
|
protected |
AbstractNotification(long messageNumber,
String resourceState,
String resourceId,
String resourceUri,
String channelId) |
Modifier and Type | Method and Description |
---|---|
String |
getChanged()
Returns the type of change performed on the resource or
null for none. |
String |
getChannelExpiration()
Returns the notification channel expiration time or
null for none. |
String |
getChannelId()
Returns the notification channel UUID provided by the client in the watch request.
|
String |
getChannelToken()
Returns the notification channel token (an opaque string) provided by the client in the watch
request or
null for none. |
long |
getMessageNumber()
Returns the message number (a monotonically increasing value starting with 1).
|
String |
getResourceId()
Returns the opaque ID for the watched resource that is stable across API versions.
|
String |
getResourceState()
Returns the
resource state . |
String |
getResourceUri()
Returns the opaque ID (in the form of a canonicalized URI) for the watched resource that is
sensitive to the API version.
|
AbstractNotification |
setChanged(String changed)
Sets the type of change performed on the resource or
null for none. |
AbstractNotification |
setChannelExpiration(String channelExpiration)
Sets the notification channel expiration time or
null for none. |
AbstractNotification |
setChannelId(String channelId)
Sets the notification channel UUID provided by the client in the watch request.
|
AbstractNotification |
setChannelToken(String channelToken)
Sets the notification channel token (an opaque string) provided by the client in the watch
request or
null for none. |
AbstractNotification |
setMessageNumber(long messageNumber)
Sets the message number (a monotonically increasing value starting with 1).
|
AbstractNotification |
setResourceId(String resourceId)
Sets the opaque ID for the watched resource that is stable across API versions.
|
AbstractNotification |
setResourceState(String resourceState)
Sets the
resource state . |
AbstractNotification |
setResourceUri(String resourceUri)
Sets the opaque ID (in the form of a canonicalized URI) for the watched resource that is
sensitive to the API version.
|
String |
toString() |
protected Objects.ToStringHelper |
toStringHelper()
Returns the helper for
toString() . |
protected AbstractNotification(long messageNumber, String resourceState, String resourceId, String resourceUri, String channelId)
messageNumber
- message number (a monotonically increasing value starting with 1)resourceState
- resource state
resourceId
- opaque ID for the watched resource that is stable across API versionsresourceUri
- opaque ID (in the form of a canonicalized URI) for the watched resource that
is sensitive to the API versionchannelId
- notification channel UUID provided by the client in the watch requestprotected AbstractNotification(AbstractNotification source)
protected Objects.ToStringHelper toStringHelper()
toString()
.public final long getMessageNumber()
public AbstractNotification setMessageNumber(long messageNumber)
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getResourceState()
resource state
.public AbstractNotification setResourceState(String resourceState)
resource state
.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getResourceId()
public AbstractNotification setResourceId(String resourceId)
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getResourceUri()
public AbstractNotification setResourceUri(String resourceUri)
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getChannelId()
public AbstractNotification setChannelId(String channelId)
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getChannelExpiration()
null
for none.public AbstractNotification setChannelExpiration(String channelExpiration)
null
for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getChannelToken()
null
for none.public AbstractNotification setChannelToken(String channelToken)
null
for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
public final String getChanged()
null
for none.public AbstractNotification setChanged(String changed)
null
for none.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
Copyright © 2010–2021 Google. All rights reserved.