public class NonStreamingWal2JsonMessageDecoder extends AbstractMessageDecoder
| Modifier and Type | Field and Description |
|---|---|
private boolean |
containsMetadata |
private DateTimeFormat |
dateTime |
private static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
NonStreamingWal2JsonMessageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder |
optionsWithMetadata(org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder builder)
Allows MessageDecoder to configure options with which the replication stream is started.
|
org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder |
optionsWithoutMetadata(org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder builder)
Allows MessageDecoder to configure options with which the replication stream is started.
|
void |
processMessage(ByteBuffer buffer,
ReplicationStream.ReplicationMessageProcessor processor,
TypeRegistry typeRegistry)
Process a message upon arrival from logical decoder
|
void |
setContainsMetadata(boolean containsMetadata)
Signals to this decoder whether messages contain type metadata or not.
|
shouldMessageBeSkippedprivate static final org.slf4j.Logger LOGGER
private final DateTimeFormat dateTime
private boolean containsMetadata
public void processMessage(ByteBuffer buffer, ReplicationStream.ReplicationMessageProcessor processor, TypeRegistry typeRegistry) throws SQLException, InterruptedException
MessageDecoderbuffer - - binary representation of replication messageprocessor - - message processing on arrivaltypeRegistry - - registry with known typesSQLExceptionInterruptedExceptionpublic org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder optionsWithMetadata(org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder builder)
MessageDecoderpublic org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder optionsWithoutMetadata(org.postgresql.replication.fluent.logical.ChainedLogicalStreamBuilder builder)
MessageDecoderpublic void setContainsMetadata(boolean containsMetadata)
MessageDecoderCopyright © 2019 JBoss by Red Hat. All rights reserved.