java.lang.Object
com.google.cloud.spring.data.spanner.core.admin.CachingComposingSupplier<T,U>
- Type Parameters:
T
- the type of objects this supplier produces.
U
- the type of objects this supplier bases its products on.
- All Implemented Interfaces:
Supplier<T>
public class CachingComposingSupplier<T,U>
extends Object
implements Supplier<T>
A supplier of objects that relies on another supplier and caches provided results.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CachingComposingSupplier
Constructor.
- Parameters:
inputProvider
- the provider that gives inputs for each product of this provider.
producer
- the function that returns products of this provider given inputs.
-