public static class OffsetCommitPolicy.PeriodicCommitOffsetPolicy extends Object implements OffsetCommitPolicy
OffsetCommitPolicy that will commit offsets no more than the specified time period. If the specified
time is less than 0 then the policy will behave as OffsetCommitPolicy.AlwaysCommitOffsetPolicy.io.debezium.embedded.EmbeddedEngine.OFFSET_FLUSH_INTERVAL_MSOffsetCommitPolicy.AlwaysCommitOffsetPolicy, OffsetCommitPolicy.PeriodicCommitOffsetPolicy| Modifier and Type | Field and Description |
|---|---|
private Duration |
minimumTime |
| Constructor and Description |
|---|
PeriodicCommitOffsetPolicy(Configuration config) |
PeriodicCommitOffsetPolicy(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
performCommit(long numberOfMessagesSinceLastCommit,
Duration timeSinceLastCommit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalways, and, or, periodicprivate final Duration minimumTime
public PeriodicCommitOffsetPolicy(Configuration config)
public PeriodicCommitOffsetPolicy(Properties properties)
public boolean performCommit(long numberOfMessagesSinceLastCommit,
Duration timeSinceLastCommit)
performCommit in interface io.debezium.engine.spi.OffsetCommitPolicyCopyright © 2020 JBoss by Red Hat. All rights reserved.