public interface AsyncTransactionalSet<E> extends AsyncPrimitive
DEFAULT_OPERATION_TIMEOUT_MILLIS| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
add(E e)
Adds the specified element to this set if it is not already present
(optional operation).
|
CompletableFuture<Boolean> |
contains(E e)
Returns true if this set contains the specified element.
|
CompletableFuture<Boolean> |
remove(E e)
Removes the specified element from this set if it is present
(optional operation).
|
default TransactionalSet<E> |
sync()
Returns a synchronous wrapper around the asynchronous primitive.
|
TransactionalSet<E> |
sync(Duration operationTimeout)
Returns a synchronous wrapper around the asynchronous primitive.
|
close, deleteaddStateChangeListener, name, protocol, removeStateChangeListener, typeCompletableFuture<Boolean> add(E e)
e - element to be added to this setCompletableFuture<Boolean> remove(E e)
e - element to be removed to this setCompletableFuture<Boolean> contains(E e)
e - element whose presence in this set is to be testedClassCastException - if the type of the specified element
is incompatible with this setNullPointerException - if the specified element is null and this
set does not permit null elementsdefault TransactionalSet<E> sync()
AsyncPrimitivesync in interface AsyncPrimitiveTransactionalSet<E> sync(Duration operationTimeout)
AsyncPrimitivesync in interface AsyncPrimitiveoperationTimeout - the synchronous operation timeoutCopyright © 2013–2018. All rights reserved.