Package org.apache.kafka.streams.kstream
Interface TransformerSupplier<K,V,R>  
- Type Parameters:
- K- key type
- V- value type
- R-- KeyValuereturn type (both key and value type can be set arbitrarily)
- All Superinterfaces:
- ConnectedStoreProvider,- Supplier<Transformer<K,- V, - R>> 
public interface TransformerSupplier<K,V,R>  
extends ConnectedStoreProvider, Supplier<Transformer<K,V,R>>  
A 
TransformerSupplier interface which can create one or more Transformer instances.
 
 The supplier should always generate a new instance each time get() gets called. Creating
 a single Transformer object and returning the same object reference in get() would be
 a violation of the supplier pattern and leads to runtime exceptions.
- 
Method SummaryModifier and TypeMethodDescriptionTransformer<K,V, R> get()Return a newly constructedTransformerinstance.Methods inherited from interface org.apache.kafka.streams.processor.ConnectedStoreProviderstores
- 
Method Details- 
getTransformer<K,V, get()R> Return a newly constructedTransformerinstance. The supplier should always generate a new instance each timegets called.Creating a single Transformerobject and returning the same object reference inget()is a violation of the supplier pattern and leads to runtime exceptions.- Specified by:
- getin interface- Supplier<K>
- Returns:
- a newly constructed Transformerinstance
 
 
-