public static class OffsetCommitPolicy.AlwaysCommitOffsetPolicy extends Object implements OffsetCommitPolicy
OffsetCommitPolicy that will commit offsets as frequently as possible. This may result in reduced
performance, but it has the least potential for seeing source records more than once upon restart.OffsetCommitPolicy.AlwaysCommitOffsetPolicy, OffsetCommitPolicy.PeriodicCommitOffsetPolicy| Constructor and Description |
|---|
AlwaysCommitOffsetPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
performCommit(long numberOfMessagesSinceLastCommit,
Duration timeSinceLastCommit)
Determine if a commit of the offsets should be performed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalways, and, or, periodicpublic boolean performCommit(long numberOfMessagesSinceLastCommit,
Duration timeSinceLastCommit)
OffsetCommitPolicyperformCommit in interface OffsetCommitPolicynumberOfMessagesSinceLastCommit - the number of messages that have been received from the connector since last
the offsets were last committed; never negativetimeSinceLastCommit - the time that has elapsed since the offsets were last committed; never negativetrue if the offsets should be committed, or false otherwiseCopyright © 2020 JBoss by Red Hat. All rights reserved.