Package org.neo4j.cdc.client.model
Class ChangeEvent
- java.lang.Object
-
- org.neo4j.cdc.client.model.ChangeEvent
-
public class ChangeEvent extends Object
Change event.
-
-
Constructor Summary
Constructors Constructor Description ChangeEvent(ChangeIdentifier id, Long txId, Integer seq, Metadata metadata, Event event)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)EventgetEvent()Details about the actual data change.ChangeIdentifiergetId()A unique change identifier that identifies this change record.MetadatagetMetadata()Other useful information about the transaction.IntegergetSeq()A number used for ordering changes that happened in the same transaction.LonggetTxId()A number identifying which transaction the change happened in, unique in combination with seq.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ChangeEvent
public ChangeEvent(ChangeIdentifier id, Long txId, Integer seq, Metadata metadata, Event event)
-
-
Method Detail
-
getId
public ChangeIdentifier getId()
A unique change identifier that identifies this change record. It can be used to query changes from this change onward.- Returns:
- change identifier
-
getTxId
public Long getTxId()
A number identifying which transaction the change happened in, unique in combination with seq. Transaction identifiers are not continuous (some transactions, such as system and schema commands, are not recorded in change data capture and cause gaps in the transaction identifiers).- Returns:
- transaction id
-
getSeq
public Integer getSeq()
A number used for ordering changes that happened in the same transaction. The order of changes observed in the output does not necessarily correspond to the order in which changes were applied during the transaction.- Returns:
- sequence
-
getMetadata
public Metadata getMetadata()
Other useful information about the transaction.- Returns:
- metadata
-
getEvent
public Event getEvent()
Details about the actual data change.- Returns:
- event
-
-