public class RedissonAtomicLongReactive extends Object implements RAtomicLongReactive
AtomicLong
Constructor and Description |
---|
RedissonAtomicLongReactive(CommandReactiveExecutor commandExecutor,
String name) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Long> |
addAndGet(long delta) |
org.reactivestreams.Publisher<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
compareAndSet(long expect,
long update) |
org.reactivestreams.Publisher<Long> |
decrementAndGet() |
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.
|
org.reactivestreams.Publisher<Long> |
get() |
org.reactivestreams.Publisher<Long> |
getAndAdd(long delta) |
org.reactivestreams.Publisher<Long> |
getAndDecrement() |
org.reactivestreams.Publisher<Long> |
getAndIncrement() |
org.reactivestreams.Publisher<Long> |
getAndSet(long newValue) |
String |
getName() |
org.reactivestreams.Publisher<Long> |
incrementAndGet() |
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) |
<R> org.reactivestreams.Publisher<R> |
reactive(io.netty.util.concurrent.Future<R> future) |
org.reactivestreams.Publisher<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
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 |
org.reactivestreams.Publisher<Void> |
set(long newValue) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public RedissonAtomicLongReactive(CommandReactiveExecutor commandExecutor, String name)
public org.reactivestreams.Publisher<Long> addAndGet(long delta)
addAndGet
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Boolean> compareAndSet(long expect, long update)
compareAndSet
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Long> decrementAndGet()
decrementAndGet
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Long> get()
get
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Long> getAndAdd(long delta)
getAndAdd
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Long> getAndSet(long newValue)
getAndSet
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Long> incrementAndGet()
incrementAndGet
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Long> getAndIncrement()
getAndIncrement
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Long> getAndDecrement()
getAndDecrement
in interface RAtomicLongReactive
public org.reactivestreams.Publisher<Void> set(long newValue)
set
in interface RAtomicLongReactive
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(io.netty.util.concurrent.Future<R> future)
protected <V> reactor.rx.Stream<V> newSucceeded(V result)
public String getName()
getName
in interface RObjectReactive
public org.reactivestreams.Publisher<Void> rename(String newName)
RObjectReactive
newName
in moderename
in interface RObjectReactive
public 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
true
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
public 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–2016. All rights reserved.