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 |
|---|---|
Map<String,?> |
getOffset() |
Map<String,?> |
getPartition() |
org.apache.kafka.connect.data.Struct |
getSourceInfo() |
org.apache.kafka.connect.data.Schema |
getSourceInfoSchema() |
boolean |
isSnapshotRunning()
Whether this offset indicates that an (uncompleted) snapshot is currently running or not.
|
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 preSnapshotStart()
void preSnapshotCompletion()
void postSnapshotCompletion()
Copyright © 2019 JBoss by Red Hat. All rights reserved.