V
- the type of elements held in this collectionpublic class RedissonDequeReactive<V> extends RedissonQueueReactive<V> implements RDequeReactive<V>
Queue
Constructor and Description |
---|
RedissonDequeReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name) |
RedissonDequeReactive(CommandReactiveExecutor commandExecutor,
String name) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Void> |
addFirst(V e) |
org.reactivestreams.Publisher<Void> |
addLast(V e) |
org.reactivestreams.Publisher<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
delete()
Delete object in mode
|
org.reactivestreams.Publisher<Boolean> |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(Date timestamp)
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(long timestamp)
Set an expire date for object in mode.
|
Codec |
getCodec() |
org.reactivestreams.Publisher<V> |
getLast() |
String |
getName() |
org.reactivestreams.Publisher<Boolean> |
isExists()
Check object existence
|
org.reactivestreams.Publisher<Void> |
migrate(String host,
int port,
int database)
Transfer a object from a source Redis instance to a destination Redis instance
in mode
|
org.reactivestreams.Publisher<Boolean> |
move(int database)
Move object to another database in mode
|
protected <V> reactor.rx.Stream<V> |
newSucceeded(V result) |
org.reactivestreams.Publisher<Boolean> |
offerFirst(V e) |
org.reactivestreams.Publisher<Long> |
offerLast(V e) |
org.reactivestreams.Publisher<V> |
peekFirst() |
org.reactivestreams.Publisher<V> |
peekLast() |
org.reactivestreams.Publisher<V> |
pollFirst() |
org.reactivestreams.Publisher<V> |
pollLast() |
org.reactivestreams.Publisher<V> |
pop() |
org.reactivestreams.Publisher<Void> |
push(V e) |
<R> org.reactivestreams.Publisher<R> |
reactive(RFuture<R> future) |
org.reactivestreams.Publisher<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<V> |
removeFirst() |
org.reactivestreams.Publisher<Boolean> |
removeFirstOccurrence(Object o) |
org.reactivestreams.Publisher<V> |
removeLast() |
org.reactivestreams.Publisher<Boolean> |
removeLastOccurrence(Object o) |
org.reactivestreams.Publisher<Void> |
rename(String newName)
Rename current object key to
newName
in mode |
org.reactivestreams.Publisher<Boolean> |
renamenx(String newName)
Rename current object key to
newName
in mode only if new key is not exists |
offer, peek, poll, pollLastAndOfferFirstTo
add, add, addAll, addAll, addAll, contains, containsAll, descendingIterator, descendingIterator, equals, fastSet, get, hashCode, indexOf, iterator, iterator, lastIndexOf, remove, remove, remove, removeAll, retainAll, set, size
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
descendingIterator
offer, peek, poll, pollLastAndOfferFirstTo
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public RedissonDequeReactive(CommandReactiveExecutor commandExecutor, String name)
public RedissonDequeReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name)
public org.reactivestreams.Publisher<Void> addFirst(V e)
addFirst
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<Void> addLast(V e)
addLast
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<V> getLast()
getLast
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<Boolean> offerFirst(V e)
offerFirst
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<Long> offerLast(V e)
offerLast
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<V> peekFirst()
peekFirst
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<V> peekLast()
peekLast
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<V> pollFirst()
pollFirst
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<V> pollLast()
pollLast
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<V> pop()
pop
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<Void> push(V e)
push
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<Boolean> removeFirstOccurrence(Object o)
removeFirstOccurrence
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<V> removeFirst()
removeFirst
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<V> removeLast()
removeLast
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<Boolean> removeLastOccurrence(Object o)
removeLastOccurrence
in interface RDequeReactive<V>
public org.reactivestreams.Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit)
RExpirableReactive
expire
in interface RExpirableReactive
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> expireAt(long timestamp)
RExpirableReactive
expireAt
in interface RExpirableReactive
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> expireAt(Date timestamp)
RExpirableReactive
expireAt
in interface RExpirableReactive
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> clearExpire()
RExpirableReactive
clearExpire
in interface RExpirableReactive
true
if the timeout was cleared and false
if notpublic org.reactivestreams.Publisher<Long> remainTimeToLive()
RExpirableReactive
remainTimeToLive
in interface RExpirableReactive
public <R> org.reactivestreams.Publisher<R> reactive(RFuture<R> future)
protected <V> reactor.rx.Stream<V> newSucceeded(V result)
public String getName()
getName
in interface RObjectReactive
public Codec getCodec()
getCodec
in interface RObjectReactive
public org.reactivestreams.Publisher<Void> rename(String newName)
RObjectReactive
newName
in moderename
in interface RObjectReactive
newName
- - new name of objectpublic org.reactivestreams.Publisher<Void> migrate(String host, int port, int database)
RObjectReactive
migrate
in interface RObjectReactive
host
- - destination hostport
- - destination portdatabase
- - destination databasepublic org.reactivestreams.Publisher<Boolean> move(int database)
RObjectReactive
move
in interface RObjectReactive
database
- - number of Redis databasetrue
if key was moved false
if notpublic org.reactivestreams.Publisher<Boolean> renamenx(String newName)
RObjectReactive
newName
in mode only if new key is not existsrenamenx
in interface RObjectReactive
newName
- - new name of objecttrue
if object has been renamed successfully and false
otherwisepublic org.reactivestreams.Publisher<Boolean> delete()
RObjectReactive
delete
in interface RObjectReactive
true
if object was deleted false
if notpublic org.reactivestreams.Publisher<Boolean> isExists()
RObjectReactive
isExists
in interface RObjectReactive
true
if object exists and false
otherwiseCopyright © 2014–2017 The Redisson Project. All rights reserved.