Interface Punctuator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface used as an argument to
ProcessingContext.schedule(Duration, PunctuationType, Punctuator).- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidpunctuate(long timestamp) Perform the scheduled periodic operation.
-
Method Details
-
punctuate
void punctuate(long timestamp) Perform the scheduled periodic operation.If this method accesses
ProcessorContextorProcessorContext, record metadata like topic, partition, and offset orRecordMetadatawon't be available.Furthermore, for any record that is sent downstream via
ProcessorContext.forward(Record)orProcessorContext.forward(Record), there won't be any record metadata. IfProcessorContext.forward(Record)is used, it's also not possible to set records headers.- Parameters:
timestamp- when the operation is being called, depending onPunctuationType
-