Package graphql.util
Class IntraThreadMemoizedSupplier<T>
- java.lang.Object
-
- graphql.util.IntraThreadMemoizedSupplier<T>
-
- Type Parameters:
T
- for two
- All Implemented Interfaces:
java.util.function.Supplier<T>
class IntraThreadMemoizedSupplier<T> extends java.lang.Object implements java.util.function.Supplier<T>
This memoizing supplier does NOT use synchronised double locking to set its value so on multiple threads it MAY call the delegate again to get a value.
-
-
Constructor Summary
Constructors Constructor Description IntraThreadMemoizedSupplier(java.util.function.Supplier<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
-
-
-
Constructor Detail
-
IntraThreadMemoizedSupplier
IntraThreadMemoizedSupplier(java.util.function.Supplier<T> delegate)
-
-