Class AbstractProcessor<K,V> 
java.lang.Object
org.apache.kafka.streams.processor.AbstractProcessor<K,V> 
- Type Parameters:
- K- the type of keys
- V- the type of values
- All Implemented Interfaces:
- Processor<K,- V> 
Deprecated.
An abstract implementation of 
Processor that manages the ProcessorContext instance and provides default no-op
 implementation of close().- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Deprecated.Close this processor and clean up any resources.protected final ProcessorContextcontext()Deprecated.Get the processor's context set duringinitialization.voidinit(ProcessorContext context) Deprecated.Initialize this processor with the given context.
- 
Field Details- 
contextDeprecated.
 
- 
- 
Constructor Details- 
AbstractProcessorprotected AbstractProcessor()Deprecated.
 
- 
- 
Method Details- 
initDeprecated.Description copied from interface:ProcessorInitialize 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 contextcan be used to access topology and record meta data, toschedulea method to becalled periodicallyand to access attachedStateStores.
- 
closepublic void close()Deprecated.Close this processor and clean up any resources.This method does nothing by default; if desired, subclasses should override it with custom functionality. 
- 
contextDeprecated.Get the processor's context set duringinitialization.- Returns:
- the processor context; null only when called prior to initialization.
 
 
- 
ProcessororContextualProcessorinstead.