K - keyV - valuepublic class RedissonSetMultimapCache<K,V> extends RedissonSetMultimap<K,V> implements RSetMultimapCache<K,V>
codec, commandExecutor| Modifier and Type | Method and Description |
|---|---|
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.
|
RFuture<Boolean> |
containsEntryAsync(Object key,
Object value)
Returns
true if this multimap contains at least one key-value pair
with the key key and the value value. |
RFuture<Boolean> |
containsKeyAsync(Object key)
Returns
true if this multimap contains at least one key-value pair
with the key key. |
RFuture<Boolean> |
containsValueAsync(Object value)
Returns
true if this multimap contains at least one key-value pair
with the value value. |
RFuture<Boolean> |
deleteAsync()
Delete 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 |
expireKey(K key,
long timeToLive,
TimeUnit timeUnit)
Set a timeout for key.
|
RFuture<Boolean> |
expireKeyAsync(K key,
long timeToLive,
TimeUnit timeUnit)
Set a timeout for key in async mode.
|
RSet<V> |
get(K key)
Returns a view collection of the values associated with
key in this
multimap, if any. |
RFuture<Collection<V>> |
getAllAsync(K key) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
RFuture<Long> |
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout
|
RFuture<Collection<V>> |
removeAllAsync(Object key)
Removes all values associated with the key
key. |
entries, getAll, putAllAsync, putAsync, removeAll, removeAsync, replaceValues, replaceValuesAsync, sizeAsyncclear, containsEntry, containsKey, containsValue, fastRemove, fastRemoveAsync, fastRemoveAsync, getLock, getReadWriteLock, hash, hashAndRelease, isEmpty, keySet, keySize, keySizeAsync, put, putAll, readAllKeySet, readAllKeySetAsync, remove, size, valuesawait, copy, copyAsync, delete, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, rename, renameAsync, renamenx, renamenxAsync, suffixName, toSeconds, touch, touchAsync, unlink, unlinkAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitentries, getAll, removeAll, replaceValuesclear, containsEntry, containsKey, containsValue, fastRemove, getLock, getReadWriteLock, isEmpty, keySet, keySize, put, putAll, readAllKeySet, remove, size, valuesclearExpire, expire, expireAt, expireAt, remainTimeToLivecopy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlinkfastRemoveAsync, keySizeAsync, putAllAsync, putAsync, readAllKeySetAsync, removeAsync, replaceValuesAsync, sizeAsyncexpireAtAsync, remainTimeToLiveAsynccopyAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncpublic RFuture<Boolean> containsKeyAsync(Object key)
RMultimapAsynctrue if this multimap contains at least one key-value pair
with the key key.containsKeyAsync in interface RMultimapAsync<K,V>containsKeyAsync in class RedissonSetMultimap<K,V>key - - map keytrue if contains a keypublic RFuture<Boolean> containsValueAsync(Object value)
RMultimapAsynctrue if this multimap contains at least one key-value pair
with the value value.containsValueAsync in interface RMultimapAsync<K,V>containsValueAsync in class RedissonSetMultimap<K,V>value - - map valuetrue if contains a valuepublic RFuture<Boolean> containsEntryAsync(Object key, Object value)
RMultimapAsynctrue if this multimap contains at least one key-value pair
with the key key and the value value.containsEntryAsync in interface RMultimapAsync<K,V>containsEntryAsync in class RedissonSetMultimap<K,V>key - - map keyvalue - - map valuetrue if contains an entrypublic RSet<V> get(K key)
RSetMultimapkey in this
multimap, if any. Note that when containsKey(key) is false, this
returns an empty collection, not null.
Changes to the returned collection will update the underlying multimap, and vice versa.
Because a RSetMultiMap has unique values for a given key, this
method returns a Set, instead of the Collection
specified in the RMultimap interface.
public RFuture<Collection<V>> getAllAsync(K key)
getAllAsync in interface RMultimapAsync<K,V>getAllAsync in class RedissonSetMultimap<K,V>public RFuture<Collection<V>> removeAllAsync(Object key)
RMultimapAsynckey.
Once this method returns, key will not be mapped to any values.
removeAllAsync in interface RMultimapAsync<K,V>removeAllAsync in class RedissonSetMultimap<K,V>key - - map keypublic boolean expireKey(K key, long timeToLive, TimeUnit timeUnit)
RMultimapCacheexpireKey in interface RMultimapCache<K,V>key - - map keytimeToLive - - timeout before key will be deletedtimeUnit - - timeout time unittrue if key exists and the timeout was set and false if key not existspublic RFuture<Boolean> expireKeyAsync(K key, long timeToLive, TimeUnit timeUnit)
RMultimapCacheAsyncexpireKeyAsync in interface RMultimapCacheAsync<K,V>key - - map keytimeToLive - - timeout before key will be deletedtimeUnit - - timeout time unittrue if key exists and the timeout was set and false if key not existspublic RFuture<Boolean> deleteAsync()
RObjectAsyncdeleteAsync in interface RObjectAsyncdeleteAsync in class RedissonMultimap<K,V>true if object was deleted false if notpublic RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
RExpirableAsyncexpireAsync in interface RExpirableAsyncexpireAsync in class RedissonMultimap<K,V>timeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsyncexpireAtAsync in interface RExpirableAsyncexpireAtAsync in class RedissonMultimap<K,V>timestamp - - expire date in seconds (Unix timestamp)true if the timeout was set and false if notpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsyncclearExpireAsync in interface RExpirableAsyncclearExpireAsync in class RedissonMultimap<K,V>true if the timeout was cleared and false if notpublic boolean expire(long timeToLive,
TimeUnit timeUnit)
RExpirableexpire in interface RExpirabletimeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic boolean expireAt(long timestamp)
RExpirableexpireAt in interface RExpirabletimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic boolean expireAt(Date timestamp)
RExpirableexpireAt in interface RExpirabletimestamp - - expire datetrue if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsyncexpireAtAsync in interface RExpirableAsynctimestamp - - expire datetrue if the timeout was set and false if notpublic boolean clearExpire()
RExpirableclearExpire in interface RExpirabletrue if timeout was removed
false if object does not exist or does not have an associated timeoutpublic long remainTimeToLive()
RExpirableremainTimeToLive in interface RExpirablepublic RFuture<Long> remainTimeToLiveAsync()
RExpirableAsyncremainTimeToLiveAsync in interface RExpirableAsyncCopyright © 2014–2018 The Redisson Project. All rights reserved.