| Package | Description |
|---|---|
| io.debezium.embedded | |
| io.debezium.embedded.spi |
| Modifier and Type | Field and Description |
|---|---|
private OffsetCommitPolicy |
EmbeddedEngine.offsetCommitPolicy |
| Modifier and Type | Method and Description |
|---|---|
protected void |
EmbeddedEngine.maybeFlush(org.apache.kafka.connect.storage.OffsetStorageWriter offsetWriter,
OffsetCommitPolicy policy,
Duration commitTimeout,
org.apache.kafka.connect.source.SourceTask task)
Determine if we should flush offsets to storage, and if so then attempt to flush offsets.
|
EmbeddedEngine.Builder |
EmbeddedEngine.Builder.using(OffsetCommitPolicy policy)
During the engine's
EmbeddedEngine.run() method, decide when the offsets
should be committed into the OffsetBackingStore. |
| Constructor and Description |
|---|
EmbeddedEngine(Configuration config,
ClassLoader classLoader,
Clock clock,
EmbeddedEngine.ChangeConsumer handler,
EmbeddedEngine.CompletionCallback completionCallback,
EmbeddedEngine.ConnectorCallback connectorCallback,
OffsetCommitPolicy offsetCommitPolicy) |
| Modifier and Type | Class and Description |
|---|---|
static class |
OffsetCommitPolicy.AlwaysCommitOffsetPolicy
An
OffsetCommitPolicy that will commit offsets as frequently as possible. |
static class |
OffsetCommitPolicy.PeriodicCommitOffsetPolicy
An
OffsetCommitPolicy that will commit offsets no more than the specified time period. |
| Modifier and Type | Method and Description |
|---|---|
static OffsetCommitPolicy |
OffsetCommitPolicy.always() |
default OffsetCommitPolicy |
OffsetCommitPolicy.and(OffsetCommitPolicy other)
Obtain a new
OffsetCommitPolicy that will commit offsets if both this policy AND the other requests it. |
default OffsetCommitPolicy |
OffsetCommitPolicy.or(OffsetCommitPolicy other)
Obtain a new
OffsetCommitPolicy that will commit offsets if this policy OR the other requests it. |
static OffsetCommitPolicy |
OffsetCommitPolicy.periodic(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
default OffsetCommitPolicy |
OffsetCommitPolicy.and(OffsetCommitPolicy other)
Obtain a new
OffsetCommitPolicy that will commit offsets if both this policy AND the other requests it. |
default OffsetCommitPolicy |
OffsetCommitPolicy.or(OffsetCommitPolicy other)
Obtain a new
OffsetCommitPolicy that will commit offsets if this policy OR the other requests it. |
Copyright © 2019 JBoss by Red Hat. All rights reserved.