public class RedissonBitSetReactive extends Object implements RBitSetReactive
| Constructor and Description |
|---|
RedissonBitSetReactive(CommandReactiveExecutor connectionManager,
String name) |
RedissonBitSetReactive(CommandReactiveExecutor connectionManager,
String name,
RBitSetAsync instance) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Void> |
and(String... bitSetNames)
Executes AND operation over this object and specified bitsets.
|
org.reactivestreams.Publisher<BitSet> |
asBitSet() |
org.reactivestreams.Publisher<Long> |
cardinality()
Returns the number of bits set to one.
|
org.reactivestreams.Publisher<Void> |
clear()
Set all bits to zero
|
org.reactivestreams.Publisher<Boolean> |
clear(long bitIndex)
Set bit to zero at specified
bitIndex |
org.reactivestreams.Publisher<Void> |
clear(long fromIndex,
long toIndex)
Set all bits to zero from
fromIndex (inclusive) to toIndex (exclusive) |
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
|
protected void |
encode(Collection<Object> params,
Collection<?> values) |
protected io.netty.buffer.ByteBuf |
encode(Object value) |
protected io.netty.buffer.ByteBuf |
encodeMapKey(Object value) |
protected io.netty.buffer.ByteBuf |
encodeMapValue(Object value) |
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<Boolean> |
get(long bitIndex)
Returns
true if bit set to one and false overwise. |
Codec |
getCodec() |
String |
getName() |
org.reactivestreams.Publisher<Boolean> |
isExists()
Check object existence
|
org.reactivestreams.Publisher<Long> |
length()
Returns "logical size" = index of highest set bit plus one.
|
org.reactivestreams.Publisher<Void> |
migrate(String host,
int port,
int database,
long timeout)
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.core.publisher.Mono<V> |
newSucceeded(V result) |
org.reactivestreams.Publisher<Void> |
not()
Executes NOT operation over all bits
|
org.reactivestreams.Publisher<Void> |
or(String... bitSetNames)
Executes OR operation over this object and specified bitsets.
|
<R> org.reactivestreams.Publisher<R> |
reactive(Supplier<RFuture<R>> supplier) |
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(BitSet bs)
Copy bits state of source BitSet object to this object
|
org.reactivestreams.Publisher<Boolean> |
set(long bitIndex)
Set bit to one at specified bitIndex
|
org.reactivestreams.Publisher<Boolean> |
set(long bitIndex,
boolean value)
Set bit to
value at specified bitIndex |
org.reactivestreams.Publisher<Void> |
set(long fromIndex,
long toIndex)
Set all bits to one from
fromIndex (inclusive) to toIndex (exclusive) |
org.reactivestreams.Publisher<Void> |
set(long fromIndex,
long toIndex,
boolean value)
Set all bits to
value from fromIndex (inclusive) to toIndex (exclusive) |
org.reactivestreams.Publisher<Long> |
size()
Returns number of set bits.
|
org.reactivestreams.Publisher<byte[]> |
toByteArray() |
String |
toString() |
org.reactivestreams.Publisher<Void> |
xor(String... bitSetNames)
Executes XOR operation over this object and specified bitsets.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearExpire, expire, expireAt, expireAt, remainTimeToLivepublic RedissonBitSetReactive(CommandReactiveExecutor connectionManager, String name)
public RedissonBitSetReactive(CommandReactiveExecutor connectionManager, String name, RBitSetAsync instance)
public org.reactivestreams.Publisher<Boolean> get(long bitIndex)
RBitSetReactivetrue if bit set to one and false overwise.get in interface RBitSetReactivebitIndex - - index of bittrue if bit set to one and false overwise.public org.reactivestreams.Publisher<Boolean> set(long bitIndex, boolean value)
RBitSetReactivevalue at specified bitIndexset in interface RBitSetReactivebitIndex - - index of bitvalue - true = 1, false = 0true - if previous value was true,
false - if previous value was falsepublic org.reactivestreams.Publisher<byte[]> toByteArray()
toByteArray in interface RBitSetReactivepublic org.reactivestreams.Publisher<BitSet> asBitSet()
asBitSet in interface RBitSetReactivepublic org.reactivestreams.Publisher<Long> length()
RBitSetReactivelength in interface RBitSetReactivepublic org.reactivestreams.Publisher<Void> set(long fromIndex, long toIndex, boolean value)
RBitSetReactivevalue from fromIndex (inclusive) to toIndex (exclusive)set in interface RBitSetReactivefromIndex - inclusivetoIndex - exclusivevalue - true = 1, false = 0public org.reactivestreams.Publisher<Void> clear(long fromIndex, long toIndex)
RBitSetReactivefromIndex (inclusive) to toIndex (exclusive)clear in interface RBitSetReactivefromIndex - inclusivetoIndex - exclusivepublic org.reactivestreams.Publisher<Void> set(BitSet bs)
RBitSetReactiveset in interface RBitSetReactivebs - - BitSet sourcepublic org.reactivestreams.Publisher<Void> not()
RBitSetReactivenot in interface RBitSetReactivepublic org.reactivestreams.Publisher<Void> set(long fromIndex, long toIndex)
RBitSetReactivefromIndex (inclusive) to toIndex (exclusive)set in interface RBitSetReactivefromIndex - inclusivetoIndex - exclusivepublic org.reactivestreams.Publisher<Long> size()
RBitSetReactivesize in interface RBitSetReactivepublic org.reactivestreams.Publisher<Boolean> set(long bitIndex)
RBitSetReactiveset in interface RBitSetReactivebitIndex - - index of bittrue - if previous value was true,
false - if previous value was falsepublic org.reactivestreams.Publisher<Long> cardinality()
RBitSetReactivecardinality in interface RBitSetReactivepublic org.reactivestreams.Publisher<Boolean> clear(long bitIndex)
RBitSetReactivebitIndexclear in interface RBitSetReactivebitIndex - - index of bittrue - if previous value was true,
false - if previous value was falsepublic org.reactivestreams.Publisher<Void> clear()
RBitSetReactiveclear in interface RBitSetReactivepublic org.reactivestreams.Publisher<Void> or(String... bitSetNames)
RBitSetReactiveor in interface RBitSetReactivebitSetNames - - name of stored bitsetspublic org.reactivestreams.Publisher<Void> and(String... bitSetNames)
RBitSetReactiveand in interface RBitSetReactivebitSetNames - - name of stored bitsetspublic org.reactivestreams.Publisher<Void> xor(String... bitSetNames)
RBitSetReactivexor in interface RBitSetReactivebitSetNames - - name of stored bitsetspublic org.reactivestreams.Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit)
RExpirableReactiveexpire in interface RExpirableReactivetimeToLive - - 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)
RExpirableReactiveexpireAt in interface RExpirableReactivetimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic org.reactivestreams.Publisher<Boolean> expireAt(Date timestamp)
RExpirableReactiveexpireAt in interface RExpirableReactivetimestamp - - expire datetrue if the timeout was set and false if notpublic org.reactivestreams.Publisher<Boolean> clearExpire()
RExpirableReactiveclearExpire in interface RExpirableReactivetrue if the timeout was cleared and false if notpublic org.reactivestreams.Publisher<Long> remainTimeToLive()
RExpirableReactiveremainTimeToLive in interface RExpirableReactiveprotected <V> reactor.core.publisher.Mono<V> newSucceeded(V result)
public String getName()
getName in interface RObjectReactivepublic Codec getCodec()
getCodec in interface RObjectReactiveprotected void encode(Collection<Object> params, Collection<?> values)
protected io.netty.buffer.ByteBuf encode(Object value)
protected io.netty.buffer.ByteBuf encodeMapKey(Object value)
protected io.netty.buffer.ByteBuf encodeMapValue(Object value)
public org.reactivestreams.Publisher<Void> rename(String newName)
RObjectReactivenewName
in moderename in interface RObjectReactivenewName - - new name of objectpublic org.reactivestreams.Publisher<Void> migrate(String host, int port, int database, long timeout)
RObjectReactivemigrate in interface RObjectReactivehost - - destination hostport - - destination portdatabase - - destination databasetimeout - - maximum idle time in any moment of the communication with the destination instance in millisecondspublic org.reactivestreams.Publisher<Boolean> move(int database)
RObjectReactivemove in interface RObjectReactivedatabase - - number of Redis databasetrue if key was moved false if notpublic org.reactivestreams.Publisher<Boolean> renamenx(String newName)
RObjectReactivenewName
in mode only if new key is not existsrenamenx in interface RObjectReactivenewName - - new name of objecttrue if object has been renamed successfully and false otherwisepublic org.reactivestreams.Publisher<Boolean> delete()
RObjectReactivedelete in interface RObjectReactivetrue if object was deleted false if notpublic org.reactivestreams.Publisher<Boolean> isExists()
RObjectReactiveisExists in interface RObjectReactivetrue if object exists and false otherwiseCopyright © 2014–2018 The Redisson Project. All rights reserved.