Package io.atomix.primitive
Interface PrimitiveCache
public interface PrimitiveCache
Atomix primitive cache.
-
Method Summary
Modifier and Type Method Description <P extends DistributedPrimitive>
CompletableFuture<P>getPrimitive(String name, java.util.function.Supplier<CompletableFuture<P>> supplier)Gets or creates a locally cached multiton primitive instance.
-
Method Details
-
getPrimitive
<P extends DistributedPrimitive> CompletableFuture<P> getPrimitive(String name, java.util.function.Supplier<CompletableFuture<P>> supplier)Gets or creates a locally cached multiton primitive instance.- Type Parameters:
P- the primitive type- Parameters:
name- the primitive namesupplier- the primitive factory- Returns:
- the primitive instance
-