Package org.opensearch.common.util
Class CachedSupplier<T>
java.lang.Object
org.opensearch.common.util.CachedSupplier<T>
- All Implemented Interfaces:
Supplier<T>
A
Supplier
that caches its return value. This may be useful to make
a Supplier
idempotent or for performance reasons if always returning
the same instance is acceptable.- Opensearch.internal:
-
Constructor Summary
Constructors -
Method Summary