KIn
- the type of input keysVIn
- the type of input valuesKOut
- the type of output keysVOut
- the type of output values@FunctionalInterface public interface ProcessorSupplier<KIn,VIn,KOut,VOut> extends ConnectedStoreProvider, Supplier<Processor<KIn,VIn,KOut,VOut>>
Processor
instances.
It is used in Topology
for adding new processor operators, whose generated
topology can then be replicated (and thus creating one or more Processor
instances)
and distributed to multiple stream threads.
The supplier should always generate a new instance each time get()
gets called. Creating
a single Processor
object and returning the same object reference in get()
would be
a violation of the supplier pattern and leads to runtime exceptions.
Modifier and Type | Method and Description |
---|---|
Processor<KIn,VIn,KOut,VOut> |
get()
Return a newly constructed
Processor instance. |
stores