@DefaultCoder(value=AvroCoder.class) public class HeartbeatRecord extends java.lang.Object implements ChangeStreamRecord
Constructor and Description |
---|
HeartbeatRecord(com.google.cloud.Timestamp timestamp,
ChangeStreamRecordMetadata metadata)
Constructs the heartbeat record with the given timestamp and metadata.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
com.google.cloud.Timestamp |
getRecordTimestamp()
Indicates the timestamp for which the change stream query has returned all changes.
|
com.google.cloud.Timestamp |
getTimestamp()
Indicates the timestamp for which the change stream query has returned all changes.
|
int |
hashCode() |
java.lang.String |
toString() |
public HeartbeatRecord(com.google.cloud.Timestamp timestamp, ChangeStreamRecordMetadata metadata)
timestamp
- the timestamp for which all changes in the partition have occurredmetadata
- connector execution metadata for the given recordpublic com.google.cloud.Timestamp getRecordTimestamp()
getRecordTimestamp
in interface ChangeStreamRecord
public com.google.cloud.Timestamp getTimestamp()
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object