V
- the type of elements held in this collectionpublic interface RTransferQueueRx<V> extends RBlockingQueueRx<V>
TransferQueue
Modifier and Type | Method and Description |
---|---|
io.reactivex.rxjava3.core.Completable |
transfer(V e)
Transfers the element to waiting consumer
which invoked
RBlockingQueueRx.take() or RBlockingQueueRx.poll(long, java.util.concurrent.TimeUnit) method
at the moment of transfer. |
io.reactivex.rxjava3.core.Single<Boolean> |
tryTransfer(V e)
Tries to transfer the element to waiting consumer
which invoked
RBlockingQueueRx.take() or RBlockingQueueRx.poll(long, java.util.concurrent.TimeUnit) method
at the moment of transfer. |
io.reactivex.rxjava3.core.Single<Boolean> |
tryTransfer(V e,
long timeout,
TimeUnit unit)
Transfers the element to waiting consumer
which invoked
RBlockingQueueRx.take() or RBlockingQueueRx.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, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
io.reactivex.rxjava3.core.Single<Boolean> tryTransfer(V e)
RBlockingQueueRx.take()
or RBlockingQueueRx.poll(long, java.util.concurrent.TimeUnit)
method
at the moment of transfer.e
- element to transfertrue
if element was transferred, otherwise
false
io.reactivex.rxjava3.core.Completable transfer(V e)
RBlockingQueueRx.take()
or RBlockingQueueRx.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 queueio.reactivex.rxjava3.core.Single<Boolean> tryTransfer(V e, long timeout, TimeUnit unit)
RBlockingQueueRx.take()
or RBlockingQueueRx.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–2021 Redisson. All rights reserved.