Interface AsyncPrimitive

All Superinterfaces:
DistributedPrimitive
All Known Implementing Classes:
AbstractAsyncPrimitive

public interface AsyncPrimitive
extends DistributedPrimitive
Asynchronous primitive.
  • Method Details

    • close

      Closes the primitive.
      Returns:
      a future to be completed once the primitive is closed
    • delete

      Purges state associated with this primitive.

      Implementations can override and provide appropriate clean up logic for purging any state state associated with the primitive. Whether modifications made within the destroy method have local or global visibility is left unspecified.

      Returns:
      CompletableFuture that is completed when the operation completes
    • sync

      Returns a synchronous wrapper around the asynchronous primitive.
      Returns:
      the synchronous primitive
    • sync

      SyncPrimitive sync​(java.time.Duration operationTimeout)
      Returns a synchronous wrapper around the asynchronous primitive.
      Parameters:
      operationTimeout - the synchronous operation timeout
      Returns:
      the synchronous primitive