Interface AscendingTimestampExtractor.MonotonyViolationHandler
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AscendingTimestampExtractor.FailingHandler,AscendingTimestampExtractor.IgnoringHandler,AscendingTimestampExtractor.LoggingHandler
- Enclosing class:
- AscendingTimestampExtractor<T>
Interface for handlers that handle violations of the monotonous ascending timestamps
property.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleViolation(long elementTimestamp, long lastTimestamp) Called when the property of monotonously ascending timestamps is violated, i.e., whenelementTimestamp < lastTimestamp.
-
Method Details
-
handleViolation
void handleViolation(long elementTimestamp, long lastTimestamp) Called when the property of monotonously ascending timestamps is violated, i.e., whenelementTimestamp < lastTimestamp.- Parameters:
elementTimestamp- The timestamp of the current element.lastTimestamp- The last timestamp.
-