K - key typeV - value typeR - KeyValue return type (both key and value type can be set
arbitrarily)public interface TransformerSupplier<K,V,R> extends ConnectedStoreProvider, Supplier<Transformer<K,V,R>>
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.
| Modifier and Type | Method and Description |
|---|---|
Transformer<K,V,R> |
get()
Return a newly constructed
Transformer instance. |
storesTransformer<K,V,R> get()
Transformer instance.
The supplier should always generate a new instance each time gets called.
Creating a single Transformer object and returning the same object reference in get()
is a violation of the supplier pattern and leads to runtime exceptions.
get in interface Supplier<Transformer<K,V,R>>Transformer instance