Interface ProcessorSupplier<KIn,VIn,KOut,VOut>
-
- Type Parameters:
KIn- the type of input keysVIn- the type of input valuesKOut- the type of output keysVOut- the type of output values
- All Superinterfaces:
ConnectedStoreProvider,Supplier<Processor<KIn,VIn,KOut,VOut>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ProcessorSupplier<KIn,VIn,KOut,VOut> extends ConnectedStoreProvider, Supplier<Processor<KIn,VIn,KOut,VOut>>
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 timeget()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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Processor<KIn,VIn,KOut,VOut>get()Return a newly constructedProcessorinstance.-
Methods inherited from interface org.apache.kafka.streams.processor.ConnectedStoreProvider
stores
-
-