public static class PubsubClient.OutgoingMessage
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.
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
attributes |
byte[] |
elementBytes
Underlying (encoded) element.
|
java.lang.String |
recordId
If using an id attribute, the record id to associate with this record's metadata so the
receiver can reject duplicates.
|
long |
timestampMsSinceEpoch
Timestamp for element (ms since epoch).
|
Constructor and Description |
---|
OutgoingMessage(byte[] elementBytes,
java.util.Map<java.lang.String,java.lang.String> attributes,
long timestampMsSinceEpoch,
java.lang.String recordId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public final byte[] elementBytes
public final java.util.Map<java.lang.String,java.lang.String> attributes
public final long timestampMsSinceEpoch
@Nullable public final java.lang.String recordId