Package io.atomix.client.set
Interface AsyncDistributedSet<E>
- Type Parameters:
E- set entry type
- All Superinterfaces:
AsyncDistributedCollection<E>,AsyncIterable<E>,AsyncPrimitive,DistributedPrimitive
-
Field Summary
Fields inherited from interface io.atomix.client.DistributedPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS -
Method Summary
Modifier and TypeMethodDescriptionAdds the specified element to this collection if it is not already present (optional operation).default DistributedSet<E>sync()Returns a synchronous wrapper around the asynchronous primitive.Returns a synchronous wrapper around the asynchronous primitive.Methods inherited from interface io.atomix.client.collection.AsyncDistributedCollection
add, addAll, clear, contains, containsAll, isEmpty, listen, listen, remove, removeAll, retainAll, sizeMethods inherited from interface io.atomix.client.iterator.AsyncIterable
iterator, streamMethods inherited from interface io.atomix.client.AsyncPrimitive
closeMethods inherited from interface io.atomix.client.DistributedPrimitive
name
-
Method Details
-
add
Adds the specified element to this collection if it is not already present (optional operation).- Parameters:
element- element to add- Returns:
trueif this collection did not already contain the specified element.
-
sync
Description copied from interface:AsyncPrimitiveReturns a synchronous wrapper around the asynchronous primitive.- Specified by:
syncin interfaceAsyncDistributedCollection<E>- Specified by:
syncin interfaceAsyncPrimitive- Returns:
- the synchronous primitive
-
sync
Description copied from interface:AsyncPrimitiveReturns a synchronous wrapper around the asynchronous primitive.- Specified by:
syncin interfaceAsyncDistributedCollection<E>- Specified by:
syncin interfaceAsyncPrimitive- Parameters:
operationTimeout- the synchronous operation timeout- Returns:
- the synchronous primitive
-