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