Package org.redisson.api
Interface RCollectionAsync<V>
-
- Type Parameters:
V- type of value
- All Superinterfaces:
RExpirableAsync,RObjectAsync
- All Known Subinterfaces:
RBlockingDeque<V>,RBlockingDequeAsync<V>,RBlockingQueue<V>,RBlockingQueueAsync<V>,RBoundedBlockingQueue<V>,RBoundedBlockingQueueAsync<V>,RDelayedQueue<V>,RDeque<V>,RDequeAsync<V>,RLexSortedSet,RLexSortedSetAsync,RList<V>,RListAsync<V>,RPriorityBlockingDeque<V>,RPriorityBlockingQueue<V>,RPriorityDeque<V>,RPriorityQueue<V>,RQueue<V>,RQueueAsync<V>,RRingBuffer<V>,RRingBufferAsync<V>,RSet<V>,RSetAsync<V>,RSetCache<V>,RSetCacheAsync<V>,RTransferQueue<V>,RTransferQueueAsync<V>
- All Known Implementing Classes:
RedissonBlockingDeque,RedissonBlockingQueue,RedissonBoundedBlockingQueue,RedissonDelayedQueue,RedissonDeque,RedissonLexSortedSet,RedissonList,RedissonListMultimapValues,RedissonPriorityBlockingDeque,RedissonPriorityBlockingQueue,RedissonPriorityDeque,RedissonPriorityQueue,RedissonQueue,RedissonRingBuffer,RedissonSet,RedissonSetCache,RedissonSetMultimapValues,RedissonSubList,RedissonTransactionalSet,RedissonTransactionalSetCache,RedissonTransferQueue
public interface RCollectionAsync<V> extends RExpirableAsync
Common async interface for collection object- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RFuture<Boolean>addAllAsync(Collection<? extends V> c)Adds all elements contained in the specified collectionRFuture<Boolean>addAsync(V e)Adds element into this collection.RFuture<Boolean>containsAllAsync(Collection<?> c)Returnstrueif this collection contains all of the elements in the specified collection.RFuture<Boolean>containsAsync(Object o)Returnstrueif this collection contains encoded state of the specified element.RFuture<Boolean>removeAllAsync(Collection<?> c)Removes all of this collection's elements that are also contained in the specified collection.RFuture<Boolean>removeAsync(Object o)Removes a single instance of the specified element from this collection, if it is present.RFuture<Boolean>retainAllAsync(Collection<?> c)Retains only the elements in this collection that are contained in the specified collection.RFuture<Integer>sizeAsync()Returns number of elements in this collection.-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
retainAllAsync
RFuture<Boolean> retainAllAsync(Collection<?> c)
Retains only the elements in this collection that are contained in the specified collection.- Parameters:
c- collection containing elements to be retained in this collection- Returns:
trueif this collection changed as a result of the call
-
removeAllAsync
RFuture<Boolean> removeAllAsync(Collection<?> c)
Removes all of this collection's elements that are also contained in the specified collection.- Parameters:
c- collection containing elements to be removed from this collection- Returns:
trueif this collection changed as a result of the call
-
containsAsync
RFuture<Boolean> containsAsync(Object o)
Returnstrueif this collection contains encoded state of the specified element.- Parameters:
o- element whose presence in this collection is to be tested- Returns:
trueif this collection contains the specified element andfalseotherwise
-
containsAllAsync
RFuture<Boolean> containsAllAsync(Collection<?> c)
Returnstrueif this collection contains all of the elements in the specified collection.- Parameters:
c- collection to be checked for containment in this collection- Returns:
trueif this collection contains all of the elements in the specified collection
-
removeAsync
RFuture<Boolean> removeAsync(Object o)
Removes a single instance of the specified element from this collection, if it is present.- Parameters:
o- element to be removed from this collection, if present- Returns:
trueif an element was removed as a result of this call
-
sizeAsync
RFuture<Integer> sizeAsync()
Returns number of elements in this collection.- Returns:
- size of collection
-
addAsync
RFuture<Boolean> addAsync(V e)
Adds element into this collection.- Parameters:
e- - element to add- Returns:
trueif an element was added andfalseif it is already present
-
addAllAsync
RFuture<Boolean> addAllAsync(Collection<? extends V> c)
Adds all elements contained in the specified collection- Parameters:
c- - collection of elements to add- Returns:
trueif at least one element was added andfalseif all elements are already present
-
-