Package io.atomix.client
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
Asynchronous primitive.
-
Field Summary
Fields inherited from interface io.atomix.client.DistributedPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS -
Method Summary
Methods inherited from interface io.atomix.client.DistributedPrimitive
name
-
Method Details
-
close
CompletableFuture<Void> close()Closes the primitive.- Returns:
- a future to be completed once the primitive is closed
-
sync
SyncPrimitive sync()Returns a synchronous wrapper around the asynchronous primitive.- Returns:
- the synchronous primitive
-
sync
Returns a synchronous wrapper around the asynchronous primitive.- Parameters:
operationTimeout- the synchronous operation timeout- Returns:
- the synchronous primitive
-