public interface OffsetContext
| Modifier and Type | Interface and Description |
|---|---|
static interface |
OffsetContext.Loader
Implementations load a connector-specific offset context based on the offset values stored in Kafka.
|
| Modifier and Type | Method and Description |
|---|---|
void |
event(DataCollectionId collectionId,
Instant timestamp)
Records the name of the collection and the timestamp of the last event
|
Map<String,?> |
getOffset() |
Map<String,?> |
getPartition() |
org.apache.kafka.connect.data.Struct |
getSourceInfo() |
org.apache.kafka.connect.data.Schema |
getSourceInfoSchema() |
TransactionContext |
getTransactionContext()
Provide a context used by
TransactionMonitor so persist its internal state into offsets to survive
between restarts. |
boolean |
isSnapshotRunning()
Whether this offset indicates that an (uncompleted) snapshot is currently running or not.
|
void |
markLastSnapshotRecord()
mark current record as the last one in the snapshot
|
void |
postSnapshotCompletion()
Signals that a snapshot has been completed, which should reflect in an updated offset state.
|
void |
preSnapshotCompletion()
Signals that a snapshot will complete, which should reflect in an updated offset state.
|
void |
preSnapshotStart()
Signals that a snapshot will begin, which should reflect in an updated offset state.
|
org.apache.kafka.connect.data.Schema getSourceInfoSchema()
org.apache.kafka.connect.data.Struct getSourceInfo()
boolean isSnapshotRunning()
void markLastSnapshotRecord()
void preSnapshotStart()
void preSnapshotCompletion()
void postSnapshotCompletion()
void event(DataCollectionId collectionId, Instant timestamp)
TransactionContext getTransactionContext()
TransactionMonitor so persist its internal state into offsets to survive
between restarts.Copyright © 2020 JBoss by Red Hat. All rights reserved.