class OffsetResetProtectionSettings extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- OffsetResetProtectionSettings
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- val enable: Boolean
- val offsetThreshold: Long
- val timeThreshold: FiniteDuration
- def toString(): String
- Definition Classes
- OffsetResetProtectionSettings → AnyRef → Any
- def withEnable(enable: Boolean): OffsetResetProtectionSettings
Whether offset-reset protection should be enabled.
- def withOffsetThreshold(offsetThreshold: Long): OffsetResetProtectionSettings
If consumer gets a record with an offset that is more than this number of offsets back from the previously requested offset, it is considered a reset.
- def withTimeThreshold(timeThreshold: Duration): OffsetResetProtectionSettings
Java API
Java API
If the record is more than this duration earlier the last received record, it is considered a reset
- def withTimeThreshold(timeThreshold: FiniteDuration): OffsetResetProtectionSettings
Scala API.
Scala API.
If the record is more than this duration earlier the last received record, it is considered a reset