public static class OffsetFlushPolicy.PeriodicFlushOffsetPolicy extends Object implements OffsetFlushPolicy
OffsetFlushPolicy.AlwaysFlushOffsetPolicy, OffsetFlushPolicy.PeriodicFlushOffsetPolicy| Modifier and Type | Field and Description |
|---|---|
private long |
maxOffsetFlushSize |
private Duration |
offsetFlushInterval |
| Constructor and Description |
|---|
PeriodicFlushOffsetPolicy(Duration offsetFlushInterval,
long maxOffsetFlushSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldFlush(Duration timeSinceLastFlush,
long numOfRecordsSinceLastFlush) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalways, periodicprivate final Duration offsetFlushInterval
private final long maxOffsetFlushSize
PeriodicFlushOffsetPolicy(Duration offsetFlushInterval, long maxOffsetFlushSize)
public boolean shouldFlush(Duration timeSinceLastFlush, long numOfRecordsSinceLastFlush)
shouldFlush in interface OffsetFlushPolicyCopyright © 2021 JBoss by Red Hat. All rights reserved.