Interface PrimitiveCache


public interface PrimitiveCache
Atomix primitive cache.
  • 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 name
      supplier - the primitive factory
      Returns:
      the primitive instance