Class KStreamTransformValues.KStreamTransformValuesProcessor<K,V,R>
- java.lang.Object
-
- org.apache.kafka.streams.kstream.internals.KStreamTransformValues.KStreamTransformValuesProcessor<K,V,R>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close this processor and clean up any resources.void
init(ProcessorContext context)
Initialize this processor with the given context.void
process(K key, V value)
Process the record with the given key and value.
-
-
-
Method Detail
-
init
public void init(ProcessorContext context)
Description copied from interface:Processor
Initialize this processor with the given context. The framework ensures this is called once per processor when the topology that contains it is initialized. When the framework is done with the processor,Processor.close()
will be called on it; the framework may later re-use the processor by calling#init()
again.The provided
context
can be used to access topology and record meta data, toschedule
a method to becalled periodically
and to access attachedStateStore
s.
-
process
public void process(K key, V value)
Description copied from interface:Processor
Process the record with the given key and value.
-
close
public void close()
Description copied from interface:Processor
Close this processor and clean up any resources. Be aware that#close()
is called after an internal cleanup. Thus, it is not possible to write anything to Kafka as underlying clients are already closed. The framework may later re-use this processor by calling#init()
on it again.Note: Do not close any streams managed resources, like
StateStore
s here, as they are managed by the library.
-
-