Interface OffsetFlushPolicy

All Known Implementing Classes:
OffsetFlushPolicy.AlwaysFlushOffsetPolicy, OffsetFlushPolicy.PeriodicFlushOffsetPolicy

public interface OffsetFlushPolicy
This 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.