static class ParallelSnapshotReader.ParallelHaltingPredicate extends Object implements HaltingPredicate
DEFAULT_MIN_HALTING_DURATION of
the current time. Once a single record near the end of the binlog has been seen, we
we assume the reader will stay near the end of the binlog.| Modifier and Type | Field and Description |
|---|---|
private static Duration |
DEFAULT_MIN_HALTING_DURATION |
private static org.slf4j.Logger |
LOGGER |
private Duration |
minHaltingDuration |
private AtomicBoolean |
otherReaderNearEnd |
private AtomicBoolean |
thisReaderNearEnd |
| Constructor and Description |
|---|
ParallelHaltingPredicate(AtomicBoolean thisReaderNearEndRef,
AtomicBoolean otherReaderNearEndRef) |
ParallelHaltingPredicate(AtomicBoolean thisReaderNearEndRef,
AtomicBoolean otherReaderNearEndRef,
Duration minHaltingDuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(org.apache.kafka.connect.source.SourceRecord ourSourceRecord)
Whether this record should be processed by the calling reader or not.
|
private static final org.slf4j.Logger LOGGER
private static final Duration DEFAULT_MIN_HALTING_DURATION
private volatile AtomicBoolean thisReaderNearEnd
private volatile AtomicBoolean otherReaderNearEnd
private final Duration minHaltingDuration
ParallelHaltingPredicate(AtomicBoolean thisReaderNearEndRef, AtomicBoolean otherReaderNearEndRef)
ParallelHaltingPredicate(AtomicBoolean thisReaderNearEndRef, AtomicBoolean otherReaderNearEndRef, Duration minHaltingDuration)
public boolean accepts(org.apache.kafka.connect.source.SourceRecord ourSourceRecord)
HaltingPredicateaccepts in interface HaltingPredicateCopyright © 2021 JBoss by Red Hat. All rights reserved.