Class BasicIntQueueSubscription<T>
java.lang.Object
java.lang.Number
java.util.concurrent.atomic.AtomicInteger
io.reactivex.rxjava3.internal.subscriptions.BasicIntQueueSubscription<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
QueueFuseable<T>,QueueSubscription<T>,SimpleQueue<T>,Serializable,org.reactivestreams.Subscription
- Direct Known Subclasses:
DeferredScalarSubscription,FlowableCombineLatest.CombineLatestCoordinator,FlowableDoFinally.DoFinallyConditionalSubscriber,FlowableDoFinally.DoFinallySubscriber,FlowableFlatMapCompletable.FlatMapCompletableMainSubscriber,FlowableFlattenIterable.FlattenIterableSubscriber,FlowableGroupBy.State,FlowableObserveOn.BaseObserveOnSubscriber,FlowableOnBackpressureBuffer.BackpressureBufferSubscriber,MaybeFlatMapIterableFlowable.FlatMapIterableObserver,MaybeFlattenStreamAsFlowable.FlattenStreamMultiObserver,MaybeMergeArray.MergeMaybeObserver,SingleFlatMapIterableFlowable.FlatMapIterableObserver,UnicastProcessor.UnicastQueueSubscription
public abstract class BasicIntQueueSubscription<@NonNull T>
extends AtomicInteger
implements QueueSubscription<T>
Base class extending AtomicInteger (wip or request accounting) and QueueSubscription (fusion).
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.atomic.AtomicInteger
accumulateAndGet, addAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAcquire, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, getOpaque, getPlain, incrementAndGet, intValue, lazySet, longValue, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatileMethods inherited from class java.lang.Number
byteValue, shortValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.reactivex.rxjava3.operators.QueueFuseable
requestFusionMethods inherited from interface io.reactivex.rxjava3.operators.SimpleQueue
clear, isEmpty, pollMethods inherited from interface org.reactivestreams.Subscription
cancel, request
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
BasicIntQueueSubscription
public BasicIntQueueSubscription()
-
-
Method Details
-
offer
Description copied from interface:SimpleQueueAtomically enqueue a single value.- Specified by:
offerin interfaceSimpleQueue<T>- Parameters:
e- the value to enqueue, not null- Returns:
- true if successful, false if the value was not enqueued likely due to reaching the queue capacity)
-
offer
Description copied from interface:SimpleQueueAtomically enqueue two values.- Specified by:
offerin interfaceSimpleQueue<T>- Parameters:
v1- the first value to enqueue, not nullv2- the second value to enqueue, not null- Returns:
- true if successful, false if the value was not enqueued likely due to reaching the queue capacity)
-