public abstract static class PubsubClient.IncomingMessage
extends java.lang.Object
implements java.io.Serializable
NOTE: This class is Serializable
only to support the PubsubTestClient
. Java
serialization is never used for non-test clients.
Constructor and Description |
---|
IncomingMessage() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
ackId()
Id to pass back to Pubsub to acknowledge receipt of this message.
|
abstract com.google.pubsub.v1.PubsubMessage |
message()
Underlying Message.
|
static PubsubClient.IncomingMessage |
of(com.google.pubsub.v1.PubsubMessage message,
long timestampMsSinceEpoch,
long requestTimeMsSinceEpoch,
java.lang.String ackId,
java.lang.String recordId) |
abstract java.lang.String |
recordId()
Id to pass to the runner to distinguish this message from all others.
|
abstract long |
requestTimeMsSinceEpoch()
Timestamp (in system time) at which we requested the message (ms since epoch).
|
abstract long |
timestampMsSinceEpoch()
Timestamp for element (ms since epoch).
|
public abstract com.google.pubsub.v1.PubsubMessage message()
public abstract long timestampMsSinceEpoch()
public abstract long requestTimeMsSinceEpoch()
public abstract java.lang.String ackId()
public abstract java.lang.String recordId()
public static PubsubClient.IncomingMessage of(com.google.pubsub.v1.PubsubMessage message, long timestampMsSinceEpoch, long requestTimeMsSinceEpoch, java.lang.String ackId, java.lang.String recordId)