replicationMode property

ReplicationMode replicationMode
final

The replication mode for connecting in streaming replication mode.

When the value is set to either ReplicationMode.physical or ReplicationMode.logical, the query protocol will no longer work as the connection will be switched to a replication connection. In other words, using the default query or mappedResultsQuery will cause the database to throw an error and drop the connection.

Use query useSimpleQueryProtocol set to true or execute for executing statements while in replication mode.

For more info, see Streaming Replication Protocol

Implementation

final ReplicationMode replicationMode;