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