public interface AsyncDistributedSortedSet<E extends Comparable<E>> extends AsyncDistributedSet<E>
DEFAULT_OPERATION_TIMEOUT_MILLIS| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<E> |
first()
Returns the first (lowest) element currently in this set.
|
AsyncDistributedSortedSet<E> |
headSet(E toElement)
Returns a view of the portion of this set whose elements are
strictly less than toElement.
|
CompletableFuture<E> |
last()
Returns the last (highest) element currently in this set.
|
AsyncDistributedSortedSet<E> |
subSet(E fromElement,
E toElement)
Returns a view of the portion of this set whose elements range
from fromElement, inclusive, to toElement,
exclusive.
|
default DistributedSortedSet<E> |
sync()
Returns a synchronous wrapper around the asynchronous primitive.
|
DistributedSortedSet<E> |
sync(Duration operationTimeout)
Returns a synchronous wrapper around the asynchronous primitive.
|
AsyncDistributedSortedSet<E> |
tailSet(E fromElement)
Returns a view of the portion of this set whose elements are
greater than or equal to fromElement.
|
add, addAll, addListener, addListener, clear, contains, containsAll, isEmpty, remove, removeAll, removeListener, retainAll, sizeclose, deleteaddStateChangeListener, name, protocol, removeStateChangeListener, typeiterator, streamcommit, prepare, rollbackAsyncDistributedSortedSet<E> subSet(E fromElement, E toElement)
The returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
fromElement - low endpoint (inclusive) of the returned settoElement - high endpoint (exclusive) of the returned setClassCastException - if fromElement and
toElement cannot be compared to one another using this
set's comparator (or, if the set has no comparator, using
natural ordering). Implementations may, but are not required
to, throw this exception if fromElement or
toElement cannot be compared to elements currently in
the set.NullPointerException - if fromElement or
toElement is null and this set does not permit null
elementsIllegalArgumentException - if fromElement is
greater than toElement; or if this set itself
has a restricted range, and fromElement or
toElement lies outside the bounds of the rangeAsyncDistributedSortedSet<E> headSet(E toElement)
The returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
toElement - high endpoint (exclusive) of the returned setClassCastException - if toElement is not compatible
with this set's comparator (or, if the set has no comparator,
if toElement does not implement Comparable).
Implementations may, but are not required to, throw this
exception if toElement cannot be compared to elements
currently in the set.NullPointerException - if toElement is null and
this set does not permit null elementsIllegalArgumentException - if this set itself has a
restricted range, and toElement lies outside the
bounds of the rangeAsyncDistributedSortedSet<E> tailSet(E fromElement)
The returned set will throw an IllegalArgumentException on an attempt to insert an element outside its range.
fromElement - low endpoint (inclusive) of the returned setClassCastException - if fromElement is not compatible
with this set's comparator (or, if the set has no comparator,
if fromElement does not implement Comparable).
Implementations may, but are not required to, throw this
exception if fromElement cannot be compared to elements
currently in the set.NullPointerException - if fromElement is null
and this set does not permit null elementsIllegalArgumentException - if this set itself has a
restricted range, and fromElement lies outside the
bounds of the rangeCompletableFuture<E> first()
NoSuchElementException - if this set is emptyCompletableFuture<E> last()
NoSuchElementException - if this set is emptydefault DistributedSortedSet<E> sync()
AsyncPrimitivesync in interface AsyncDistributedCollection<E extends Comparable<E>>sync in interface AsyncDistributedSet<E extends Comparable<E>>sync in interface AsyncPrimitiveDistributedSortedSet<E> sync(Duration operationTimeout)
AsyncPrimitivesync in interface AsyncDistributedCollection<E extends Comparable<E>>sync in interface AsyncDistributedSet<E extends Comparable<E>>sync in interface AsyncPrimitiveoperationTimeout - the synchronous operation timeoutCopyright © 2013–2018. All rights reserved.