| Modifier and Type | Method and Description |
|---|---|
static OffsetCommitPolicy |
OffsetCommitPolicy.always()
Get an
OffsetCommitPolicy that will commit offsets as frequently as possible. |
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(long minimumTime,
TimeUnit timeUnit)
Get an
OffsetCommitPolicy that will commit offsets no more than the specified time period. |
| 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. |
protected void |
EmbeddedEngine.maybeFlush(org.apache.kafka.connect.storage.OffsetStorageWriter offsetWriter,
OffsetCommitPolicy policy,
long commitTimeoutMs)
Determine if we should flush offsets to storage, and if so then attempt to flush offsets.
|
default OffsetCommitPolicy |
OffsetCommitPolicy.or(OffsetCommitPolicy other)
Obtain a new
OffsetCommitPolicy that will commit offsets if this policy OR the other requests it. |
Copyright © 2016 JBoss by Red Hat. All rights reserved.