public class RedissonBitSet extends RedissonObject implements RBitSet
codec, commandExecutor
Constructor and Description |
---|
RedissonBitSet(CommandAsyncExecutor connectionManager,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
and(String... bitSetNames) |
RFuture<Void> |
andAsync(String... bitSetNames) |
BitSet |
asBitSet() |
long |
cardinality() |
RFuture<Long> |
cardinalityAsync() |
void |
clear() |
void |
clear(long bitIndex) |
void |
clear(long fromIndex,
long toIndex) |
RFuture<Void> |
clearAsync() |
RFuture<Void> |
clearAsync(long bitIndex) |
RFuture<Void> |
clearAsync(long fromIndex,
long toIndex) |
boolean |
clearExpire()
Clear an expire timeout or expire date for object.
|
RFuture<Boolean> |
clearExpireAsync()
Clear an expire timeout or expire date for object in async mode.
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object.
|
RFuture<Boolean> |
expireAsync(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in async mode.
|
boolean |
expireAt(Date timestamp)
Set an expire date for object.
|
boolean |
expireAt(long timestamp)
Set an expire date for object.
|
RFuture<Boolean> |
expireAtAsync(Date timestamp)
Set an expire date for object in async mode.
|
RFuture<Boolean> |
expireAtAsync(long timestamp)
Set an expire date for object in async mode.
|
boolean |
get(long bitIndex) |
RFuture<Boolean> |
getAsync(long bitIndex) |
long |
length() |
RFuture<Long> |
lengthAsync() |
void |
not() |
RFuture<Void> |
notAsync() |
void |
or(String... bitSetNames) |
RFuture<Void> |
orAsync(String... bitSetNames) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
RFuture<Long> |
remainTimeToLiveAsync()
Get remaining time to live of object in seconds.
|
void |
set(BitSet bs) |
void |
set(long bitIndex) |
void |
set(long bitIndex,
boolean value) |
void |
set(long fromIndex,
long toIndex) |
void |
set(long fromIndex,
long toIndex,
boolean value) |
RFuture<Void> |
setAsync(BitSet bs) |
RFuture<Void> |
setAsync(long bitIndex) |
RFuture<Void> |
setAsync(long bitIndex,
boolean value) |
RFuture<Void> |
setAsync(long fromIndex,
long toIndex) |
RFuture<Void> |
setAsync(long fromIndex,
long toIndex,
boolean value) |
int |
size() |
RFuture<Integer> |
sizeAsync() |
byte[] |
toByteArray() |
RFuture<byte[]> |
toByteArrayAsync() |
String |
toString() |
void |
xor(String... bitSetNames) |
RFuture<Void> |
xorAsync(String... bitSetNames) |
await, delete, deleteAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, newPromise, newSucceededFuture, prefixName, rename, renameAsync, renamenx, renamenxAsync, suffixName, touch, touchAsync, unlink, unlinkAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlink
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsync
public RedissonBitSet(CommandAsyncExecutor connectionManager, String name)
public RFuture<Boolean> getAsync(long bitIndex)
getAsync
in interface RBitSetAsync
public void set(long fromIndex, long toIndex, boolean value)
public RFuture<Void> setAsync(long bitIndex, boolean value)
setAsync
in interface RBitSetAsync
public byte[] toByteArray()
toByteArray
in interface RBitSet
public RFuture<byte[]> toByteArrayAsync()
toByteArrayAsync
in interface RBitSetAsync
public long cardinality()
cardinality
in interface RBitSet
public RFuture<Long> lengthAsync()
lengthAsync
in interface RBitSetAsync
public RFuture<Void> setAsync(long fromIndex, long toIndex, boolean value)
setAsync
in interface RBitSetAsync
public RFuture<Void> clearAsync(long fromIndex, long toIndex)
clearAsync
in interface RBitSetAsync
public RFuture<Void> setAsync(BitSet bs)
setAsync
in interface RBitSetAsync
public RFuture<Void> notAsync()
notAsync
in interface RBitSetAsync
public RFuture<Void> setAsync(long fromIndex, long toIndex)
setAsync
in interface RBitSetAsync
public RFuture<Integer> sizeAsync()
sizeAsync
in interface RBitSetAsync
public RFuture<Void> setAsync(long bitIndex)
setAsync
in interface RBitSetAsync
public RFuture<Long> cardinalityAsync()
cardinalityAsync
in interface RBitSetAsync
public RFuture<Void> clearAsync(long bitIndex)
clearAsync
in interface RBitSetAsync
public RFuture<Void> clearAsync()
clearAsync
in interface RBitSetAsync
public RFuture<Void> orAsync(String... bitSetNames)
orAsync
in interface RBitSetAsync
public RFuture<Void> andAsync(String... bitSetNames)
andAsync
in interface RBitSetAsync
public RFuture<Void> xorAsync(String... bitSetNames)
xorAsync
in interface RBitSetAsync
public boolean expire(long timeToLive, TimeUnit timeUnit)
RExpirable
expire
in interface RExpirable
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
RExpirableAsync
expireAsync
in interface RExpirableAsync
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic boolean expireAt(long timestamp)
RExpirable
expireAt
in interface RExpirable
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsync
expireAtAsync
in interface RExpirableAsync
timestamp
- - expire date in seconds (Unix timestamp)true
if the timeout was set and false
if notpublic boolean expireAt(Date timestamp)
RExpirable
expireAt
in interface RExpirable
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsync
expireAtAsync
in interface RExpirableAsync
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic boolean clearExpire()
RExpirable
clearExpire
in interface RExpirable
true
if timeout was removed
false
if object does not exist or does not have an associated timeoutpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsync
clearExpireAsync
in interface RExpirableAsync
true
if the timeout was cleared and false
if notpublic long remainTimeToLive()
RExpirable
remainTimeToLive
in interface RExpirable
public RFuture<Long> remainTimeToLiveAsync()
RExpirableAsync
remainTimeToLiveAsync
in interface RExpirableAsync
-1
if object does not exist or time in secondsCopyright © 2014–2017 The Redisson Project. All rights reserved.