public interface RTransferQueueAsync<V> extends RBlockingQueueAsync<V>
TransferQueue| Modifier and Type | Method and Description |
|---|---|
List<V> |
readAll()
Returns all queue elements at once
|
RFuture<Void> |
transferAsync(V e)
Transfers the element to waiting consumer
which invoked
RBlockingQueueAsync.takeAsync() or RBlockingQueueAsync.pollAsync(long, java.util.concurrent.TimeUnit) method
at the moment of transfer. |
RFuture<Boolean> |
tryTransferAsync(V e)
Tries to transfer the element to waiting consumer
which invoked
RBlockingQueueAsync.takeAsync() or RBlockingQueueAsync.pollAsync(long, java.util.concurrent.TimeUnit) method
at the moment of transfer. |
RFuture<Boolean> |
tryTransferAsync(V e,
long timeout,
TimeUnit unit)
Transfers the element to waiting consumer
which invoked
RBlockingQueueAsync.takeAsync() or RBlockingQueueAsync.pollAsync(long, java.util.concurrent.TimeUnit) method
at the moment of transfer. |
drainToAsync, drainToAsync, pollAsync, pollFromAnyAsync, pollLastAndOfferFirstToAsync, putAsync, takeAsync, takeLastAndOfferFirstToAsyncaddListenerAsync, offerAsync, peekAsync, pollAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsyncaddAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncRFuture<Boolean> tryTransferAsync(V e)
RBlockingQueueAsync.takeAsync() or RBlockingQueueAsync.pollAsync(long, java.util.concurrent.TimeUnit) method
at the moment of transfer.e - element to transfertrue if element was transferred, otherwise
falseRFuture<Void> transferAsync(V e)
RBlockingQueueAsync.takeAsync() or RBlockingQueueAsync.pollAsync(long, java.util.concurrent.TimeUnit) method
at the moment of transfer.
Waits if necessary for a consumer.e - the element to transferClassCastException - if the class of the specified element
prevents it from being added to this queueNullPointerException - if the specified element is nullIllegalArgumentException - if some property of the specified
element prevents it from being added to this queueRFuture<Boolean> tryTransferAsync(V e, long timeout, TimeUnit unit)
RBlockingQueueAsync.takeAsync() or RBlockingQueueAsync.pollAsync(long, java.util.concurrent.TimeUnit) method
at the moment of transfer.
Waits up to defined timeout if necessary for a consumer.e - the element to transfertimeout - the maximum time to waitunit - the time unittrue if the element was transferred and false
otherwiseCopyright © 2014–2021 Redisson. All rights reserved.