public interface PrimitiveCache
| Modifier and Type | Method and Description |
|---|---|
<P extends AsyncPrimitive> |
getPrimitive(String name,
Supplier<CompletableFuture<P>> supplier)
Gets or creates a locally cached multiton primitive instance.
|
<P extends AsyncPrimitive> CompletableFuture<P> getPrimitive(String name, Supplier<CompletableFuture<P>> supplier)
P - the primitive typename - the primitive namesupplier - the primitive factoryCopyright © 2013–2018. All rights reserved.