Interface AsyncPrimitive

All Superinterfaces:
DistributedPrimitive
All Known Subinterfaces:
AsyncAtomicCounter, AsyncAtomicCounterMap<K>, AsyncAtomicMap<K,V>, AsyncAtomicValue<V>, AsyncDistributedCollection<E>, AsyncDistributedMap<K,V>, AsyncDistributedMultimap<K,V>, AsyncDistributedMultiset<E>, AsyncDistributedSet<E>
All Known Implementing Classes:
DelegatingAsyncPrimitive

public interface AsyncPrimitive extends DistributedPrimitive
Asynchronous primitive.
  • Method Details

    • close

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

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

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