Class HeartbeatEvent
java.lang.Object
io.debezium.connector.spanner.db.model.event.HeartbeatEvent
- All Implemented Interfaces:
ChangeStreamEvent
Specific DTO for Spanner Heartbeat event
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StreamEventMetadataprivate final com.google.cloud.Timestamp -
Constructor Summary
ConstructorsConstructorDescriptionHeartbeatEvent(com.google.cloud.Timestamp timestamp, StreamEventMetadata metadata) Constructs the heartbeat record with the given timestamp and metadata. -
Method Summary
-
Field Details
-
timestamp
private final com.google.cloud.Timestamp timestamp -
metadata
-
-
Constructor Details
-
HeartbeatEvent
Constructs the heartbeat record with the given timestamp and metadata.- Parameters:
timestamp- the timestamp for which all changes in the partition have occurredmetadata- connector execution metadata for the given record
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getRecordTimestamp
public com.google.cloud.Timestamp getRecordTimestamp()Indicates the timestamp for which the change stream query has returned all changes. All records emitted after the heartbeat record will have a timestamp greater than this one.- Specified by:
getRecordTimestampin interfaceChangeStreamEvent- Returns:
- the timestamp for which the change stream query has returned all changes
-
getTimestamp
public com.google.cloud.Timestamp getTimestamp()Indicates the timestamp for which the change stream query has returned all changes. All records emitted after the heartbeat record will have a timestamp greater than this one.- Returns:
- the timestamp for which the change stream query has returned all changes
-
getMetadata
- Specified by:
getMetadatain interfaceChangeStreamEvent
-
toString
-