Package io.debezium.connector.cassandra
Interface OffsetFlushPolicy
-
- All Known Implementing Classes:
OffsetFlushPolicy.AlwaysFlushOffsetPolicy,OffsetFlushPolicy.PeriodicFlushOffsetPolicy
public interface OffsetFlushPolicyThis policy determines how frequently the offset is flushed to disk. Periodic means that the offset is flushed to disk periodically according to the offset flush interval. An interval of 1000 ms that the latest offset will only be flushed to disk if the amount time that has passed since the last flush is at least 1000 ms. Always means that the offset if flushed to disk every time a record is processed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOffsetFlushPolicy.AlwaysFlushOffsetPolicystatic classOffsetFlushPolicy.PeriodicFlushOffsetPolicy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static OffsetFlushPolicyalways()static OffsetFlushPolicyperiodic(Duration offsetFlushInterval, long maxOffsetFlushSize)booleanshouldFlush(Duration timeSinceLastFlush, long numOfRecordsSinceLastFlush)
-
-
-
Method Detail
-
shouldFlush
boolean shouldFlush(Duration timeSinceLastFlush, long numOfRecordsSinceLastFlush)
-
always
static OffsetFlushPolicy always()
-
periodic
static OffsetFlushPolicy periodic(Duration offsetFlushInterval, long maxOffsetFlushSize)
-
-