Interface Punctuator
public interface Punctuator
A functional interface used as an argument to
ProcessorContext.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(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
-