Class ContextualFixedKeyProcessor<KIn,VIn,VOut>
java.lang.Object
org.apache.kafka.streams.processor.api.ContextualFixedKeyProcessor<KIn,VIn,VOut>
- Type Parameters:
KIn
- the type of input keysVIn
- the type of input valuesVOut
- the type of output values
- All Implemented Interfaces:
FixedKeyProcessor<KIn,
VIn, VOut>
public abstract class ContextualFixedKeyProcessor<KIn,VIn,VOut>
extends Object
implements FixedKeyProcessor<KIn,VIn,VOut>
An abstract implementation of
FixedKeyProcessor
that manages the
FixedKeyProcessorContext
instance and provides default no-op
implementation of FixedKeyProcessor.close()
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(FixedKeyProcessorContext<KIn, VOut> context) Initialize this processor with the given context.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.kafka.streams.processor.api.FixedKeyProcessor
close, process
-
Method Details
-
init
Description copied from interface:FixedKeyProcessor
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,FixedKeyProcessor.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 metadata, toschedule
a method to becalled periodically
and to access attachedStateStore
s.- Specified by:
init
in interfaceFixedKeyProcessor<KIn,
VIn, VOut> - Parameters:
context
- the context; may not be null
-