Package org.redisson.api
Interface RDequeReactive<V>
-
- Type Parameters:
V
- the type of elements held in this collection
- All Superinterfaces:
RCollectionReactive<V>
,RExpirableReactive
,RObjectReactive
,RQueueReactive<V>
- All Known Subinterfaces:
RBlockingDequeReactive<V>
public interface RDequeReactive<V> extends RQueueReactive<V>
Distributed reactive implementation ofDeque
- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<Void>
addFirst(V e)
Adds element at the head of this deque.org.reactivestreams.Publisher<Void>
addLast(V e)
Adds element at the tail of this deque.org.reactivestreams.Publisher<V>
descendingIterator()
org.reactivestreams.Publisher<V>
getLast()
Returns element at the tail of this deque ornull
if there are no elements in deque.org.reactivestreams.Publisher<Boolean>
offerFirst(V e)
Adds element at the head of this deque.org.reactivestreams.Publisher<Boolean>
offerLast(V e)
Adds element at the tail of this deque.org.reactivestreams.Publisher<V>
peekFirst()
Returns element at the head of this deque ornull
if there are no elements in deque.org.reactivestreams.Publisher<V>
peekLast()
Returns element at the tail of this deque ornull
if there are no elements in deque.org.reactivestreams.Publisher<V>
pollFirst()
Retrieves and removes element at the head of this deque.org.reactivestreams.Publisher<V>
pollLast()
Retrieves and removes element at the tail of this deque.org.reactivestreams.Publisher<V>
pop()
Retrieves and removes element at the head of this deque.org.reactivestreams.Publisher<Void>
push(V e)
Adds element at the head of this deque.org.reactivestreams.Publisher<V>
removeFirst()
Retrieves and removes the first element of deque.org.reactivestreams.Publisher<Boolean>
removeFirstOccurrence(Object o)
Removes first occurrence of elemento
org.reactivestreams.Publisher<V>
removeLast()
Retrieves and removes the last element of deque.org.reactivestreams.Publisher<Boolean>
removeLastOccurrence(Object o)
Removes last occurrence of elemento
-
Methods inherited from interface org.redisson.api.RCollectionReactive
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
-
Methods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RObjectReactive
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
-
Methods inherited from interface org.redisson.api.RQueueReactive
offer, peek, poll, pollLastAndOfferFirstTo
-
-
-
-
Method Detail
-
descendingIterator
org.reactivestreams.Publisher<V> descendingIterator()
-
removeLastOccurrence
org.reactivestreams.Publisher<Boolean> removeLastOccurrence(Object o)
Removes last occurrence of elemento
- Parameters:
o
- - element- Returns:
true
if object has been removed otherwisefalse
-
removeLast
org.reactivestreams.Publisher<V> removeLast()
Retrieves and removes the last element of deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
removeFirst
org.reactivestreams.Publisher<V> removeFirst()
Retrieves and removes the first element of deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
removeFirstOccurrence
org.reactivestreams.Publisher<Boolean> removeFirstOccurrence(Object o)
Removes first occurrence of elemento
- Parameters:
o
- - element to remove- Returns:
true
if object has been removed otherwisefalse
-
push
org.reactivestreams.Publisher<Void> push(V e)
Adds element at the head of this deque.- Parameters:
e
- - element to add- Returns:
- void
-
pop
org.reactivestreams.Publisher<V> pop()
Retrieves and removes element at the head of this deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
pollLast
org.reactivestreams.Publisher<V> pollLast()
Retrieves and removes element at the tail of this deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
pollFirst
org.reactivestreams.Publisher<V> pollFirst()
Retrieves and removes element at the head of this deque. Returnsnull
if there are no elements in deque.- Returns:
- element
-
peekLast
org.reactivestreams.Publisher<V> peekLast()
Returns element at the tail of this deque ornull
if there are no elements in deque.- Returns:
- element
-
peekFirst
org.reactivestreams.Publisher<V> peekFirst()
Returns element at the head of this deque ornull
if there are no elements in deque.- Returns:
- element
-
offerLast
org.reactivestreams.Publisher<Boolean> offerLast(V e)
Adds element at the tail of this deque.- Parameters:
e
- - element to add- Returns:
true
if element was added to this deque otherwisefalse
-
getLast
org.reactivestreams.Publisher<V> getLast()
Returns element at the tail of this deque ornull
if there are no elements in deque.- Returns:
- element
-
addLast
org.reactivestreams.Publisher<Void> addLast(V e)
Adds element at the tail of this deque.- Parameters:
e
- - element to add- Returns:
- void
-
addFirst
org.reactivestreams.Publisher<Void> addFirst(V e)
Adds element at the head of this deque.- Parameters:
e
- - element to add- Returns:
- void
-
-