Class ReplicationMessage.NoopMessage
- java.lang.Object
-
- io.debezium.connector.postgresql.connection.ReplicationMessage.NoopMessage
-
- All Implemented Interfaces:
ReplicationMessage
- Enclosing interface:
- ReplicationMessage
public static class ReplicationMessage.NoopMessage extends Object implements ReplicationMessage
A special message type that is used to replace event filtered already atMessageDecoder. EnablesPostgresStreamingChangeEventSourceto advance LSN forward even in case of such messages.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.debezium.connector.postgresql.connection.ReplicationMessage
ReplicationMessage.Column, ReplicationMessage.ColumnTypeMetadata, ReplicationMessage.ColumnValue<T>, ReplicationMessage.NoopMessage, ReplicationMessage.Operation, ReplicationMessage.TransactionMessage
-
-
Field Summary
Fields Modifier and Type Field Description private InstantcommitTimeprivate ReplicationMessage.Operationoperationprivate longtransactionId
-
Constructor Summary
Constructors Constructor Description NoopMessage(long transactionId, Instant commitTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetCommitTime()List<ReplicationMessage.Column>getNewTupleList()List<ReplicationMessage.Column>getOldTupleList()ReplicationMessage.OperationgetOperation()StringgetTable()longgetTransactionId()booleanhasTypeMetadata()booleanisLastEventForLsn()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.debezium.connector.postgresql.connection.ReplicationMessage
isTransactionalMessage, shouldSchemaBeSynchronized
-
-
-
-
Field Detail
-
transactionId
private final long transactionId
-
commitTime
private final Instant commitTime
-
operation
private final ReplicationMessage.Operation operation
-
-
Constructor Detail
-
NoopMessage
public NoopMessage(long transactionId, Instant commitTime)
-
-
Method Detail
-
isLastEventForLsn
public boolean isLastEventForLsn()
- Specified by:
isLastEventForLsnin interfaceReplicationMessage- Returns:
- true if this is the last message in the batch of messages with same LSN
-
hasTypeMetadata
public boolean hasTypeMetadata()
- Specified by:
hasTypeMetadatain interfaceReplicationMessage- Returns:
- true if type metadata are passed as a part of message
-
getTransactionId
public long getTransactionId()
- Specified by:
getTransactionIdin interfaceReplicationMessage- Returns:
- An id of transaction to which this change belongs
-
getTable
public String getTable()
- Specified by:
getTablein interfaceReplicationMessage- Returns:
- Table changed
-
getOperation
public ReplicationMessage.Operation getOperation()
- Specified by:
getOperationin interfaceReplicationMessage- Returns:
- A data operation executed
-
getOldTupleList
public List<ReplicationMessage.Column> getOldTupleList()
- Specified by:
getOldTupleListin interfaceReplicationMessage- Returns:
- Set of original values of table columns, null for INSERT
-
getNewTupleList
public List<ReplicationMessage.Column> getNewTupleList()
- Specified by:
getNewTupleListin interfaceReplicationMessage- Returns:
- Set of new values of table columns, null for DELETE
-
getCommitTime
public Instant getCommitTime()
- Specified by:
getCommitTimein interfaceReplicationMessage- Returns:
- Transaction commit time for this change
-
-