Package org.apache.kafka.streams.kstream
Interface ValueTransformerSupplier<V,VR>
- Type Parameters:
V
- value typeVR
- transformed value type
- All Superinterfaces:
ConnectedStoreProvider
A
ValueTransformerSupplier
interface which can create one or more ValueTransformer
instances.
The supplier should always generate a new instance each time get()
gets called. Creating
a single ValueTransformer
object and returning the same object reference in get()
would be
a violation of the supplier pattern and leads to runtime exceptions.
-
Method Summary
Methods inherited from interface org.apache.kafka.streams.processor.ConnectedStoreProvider
stores
-
Method Details
-
get
ValueTransformer<V,VR> get()Return a newly constructedValueTransformer
instance. The supplier should always generate a new instance each timeget()
gets called.Creating a single
ValueTransformer
object and returning the same object reference inget()
is a violation of the supplier pattern and leads to runtime exceptions.- Returns:
- a new
ValueTransformer
instance
-