Interface ReplicationMessage
-
- All Known Implementing Classes:
PgOutputReplicationMessage,PgOutputTruncateReplicationMessage,PgProtoReplicationMessage,ReplicationMessage.NoopMessage,ReplicationMessage.TransactionMessage,TransactionMessage,Wal2JsonReplicationMessage
public interface ReplicationMessageAn abstract representation of a replication message that is sent by a PostgreSQL logical decoding plugin and is processed by the Debezium PostgreSQL connector.- Author:
- Jiri Pechanec
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceReplicationMessage.ColumnA representation of column value delivered as a part of replication messagestatic interfaceReplicationMessage.ColumnTypeMetadatastatic interfaceReplicationMessage.ColumnValue<T>static classReplicationMessage.NoopMessageA special message type that is used to replace event filtered already atMessageDecoder.static classReplicationMessage.OperationData modification operation executedstatic classReplicationMessage.TransactionMessage
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstantgetCommitTime()List<ReplicationMessage.Column>getNewTupleList()List<ReplicationMessage.Column>getOldTupleList()ReplicationMessage.OperationgetOperation()StringgetTable()longgetTransactionId()booleanhasTypeMetadata()booleanisLastEventForLsn()default booleanisTransactionalMessage()Whether this message represents the begin or end of a transaction.default booleanshouldSchemaBeSynchronized()
-
-
-
Method Detail
-
getOperation
ReplicationMessage.Operation getOperation()
- Returns:
- A data operation executed
-
getCommitTime
Instant getCommitTime()
- Returns:
- Transaction commit time for this change
-
getTransactionId
long getTransactionId()
- Returns:
- An id of transaction to which this change belongs
-
getTable
String getTable()
- Returns:
- Table changed
-
getOldTupleList
List<ReplicationMessage.Column> getOldTupleList()
- Returns:
- Set of original values of table columns, null for INSERT
-
getNewTupleList
List<ReplicationMessage.Column> getNewTupleList()
- Returns:
- Set of new values of table columns, null for DELETE
-
hasTypeMetadata
boolean hasTypeMetadata()
- Returns:
- true if type metadata are passed as a part of message
-
isLastEventForLsn
boolean isLastEventForLsn()
- Returns:
- true if this is the last message in the batch of messages with same LSN
-
shouldSchemaBeSynchronized
default boolean shouldSchemaBeSynchronized()
- Returns:
- true if the stream producer should synchronize the schema when processing messages, false otherwise
-
isTransactionalMessage
default boolean isTransactionalMessage()
Whether this message represents the begin or end of a transaction.
-
-