public class WalPositionLocator extends Object
| Modifier and Type | Field and Description |
|---|---|
private Lsn |
firstLsnReceived |
private Lsn |
lastCommitStoredLsn |
private Lsn |
lastEventStoredLsn |
private static org.slf4j.Logger |
LOGGER |
private Lsn |
lsnAfterLastEventStoredLsn |
private boolean |
passMessages |
private Lsn |
startStreamingLsn |
private boolean |
storeLsnAfterLastEventStoredLsn |
private Lsn |
txStartLsn |
| Constructor and Description |
|---|
WalPositionLocator() |
WalPositionLocator(Lsn lastCommitStoredLsn,
Lsn lastEventStoredLsn) |
| Modifier and Type | Method and Description |
|---|---|
void |
enableFiltering()
Enables filtering of message LSNs based on calculated position.
|
Lsn |
getLastEventStoredLsn() |
Optional<Lsn> |
resumeFromLsn(Lsn currentLsn,
ReplicationMessage message) |
boolean |
searchingEnabled() |
boolean |
skipMessage(Lsn lsn)
Decides whether the message with given LSN should be removed or not based on
previously located LSN point.
|
String |
toString() |
private static final org.slf4j.Logger LOGGER
private final Lsn lastCommitStoredLsn
private final Lsn lastEventStoredLsn
private Lsn txStartLsn
private Lsn lsnAfterLastEventStoredLsn
private Lsn firstLsnReceived
private boolean passMessages
private Lsn startStreamingLsn
private boolean storeLsnAfterLastEventStoredLsn
public Optional<Lsn> resumeFromLsn(Lsn currentLsn, ReplicationMessage message)
public boolean skipMessage(Lsn lsn)
lsn - public void enableFiltering()
public boolean searchingEnabled()
public Lsn getLastEventStoredLsn()
Copyright © 2021 JBoss by Red Hat. All rights reserved.