Interface ProcessorSupplier<K,V>
- 
- Type Parameters:
- K- the type of keys
- V- the type of values
 - All Superinterfaces:
- ConnectedStoreProvider,- Supplier<Processor<K,V>>
 
 public interface ProcessorSupplier<K,V> extends ConnectedStoreProvider, Supplier<Processor<K,V>> A processor supplier that can create one or moreProcessorinstances.It is used in Topologyfor adding new processor operators, whose generated topology can then be replicated (and thus creating one or moreProcessorinstances) and distributed to multiple stream threads.The supplier should always generate a new instance each time get()gets called. Creating a singleProcessorobject and returning the same object reference inget()would be a violation of the supplier pattern and leads to runtime exceptions.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Processor<K,V>get()Return a newly constructedProcessorinstance.- 
Methods inherited from interface org.apache.kafka.streams.processor.ConnectedStoreProviderstores
 
- 
 
-