V
- the type of elements held in this collectionpublic interface RTransferQueueReactive<V> extends RBlockingQueueReactive<V>
TransferQueue
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
transfer(V e)
Transfers the element to waiting consumer
which invoked
RBlockingQueueReactive.take() or RBlockingQueueReactive.poll(long, java.util.concurrent.TimeUnit) method
at the moment of transfer. |
reactor.core.publisher.Mono<Boolean> |
tryTransfer(V e)
Tries to transfer the element to waiting consumer
which invoked
RBlockingQueueReactive.take() or RBlockingQueueReactive.poll(long, java.util.concurrent.TimeUnit) method
at the moment of transfer. |
reactor.core.publisher.Mono<Boolean> |
tryTransfer(V e,
long timeout,
TimeUnit unit)
Transfers the element to waiting consumer
which invoked
RBlockingQueueReactive.take() or RBlockingQueueReactive.poll(long, java.util.concurrent.TimeUnit) method
at the moment of transfer. |
drainTo, drainTo, poll, pollFromAny, pollLastAndOfferFirstTo, put, take, takeElements, takeLastAndOfferFirstTo
offer, peek, poll, poll, pollLastAndOfferFirstTo, readAll
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
reactor.core.publisher.Mono<Boolean> tryTransfer(V e)
RBlockingQueueReactive.take()
or RBlockingQueueReactive.poll(long, java.util.concurrent.TimeUnit)
method
at the moment of transfer.e
- element to transfertrue
if element was transferred, otherwise
false
reactor.core.publisher.Mono<Void> transfer(V e)
RBlockingQueueReactive.take()
or RBlockingQueueReactive.poll(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 queuereactor.core.publisher.Mono<Boolean> tryTransfer(V e, long timeout, TimeUnit unit)
RBlockingQueueReactive.take()
or RBlockingQueueReactive.poll(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–2020 Redisson. All rights reserved.