Top Description Inners Fields Constructors Methods
io.reactivex.internal.operators.flowable

public final Class FlowableRangeLong

extends Flowable<Long>
Class Inheritance
Imports
org.reactivestreams.Subscriber, io.reactivex.Flowable, io.reactivex.annotations.Nullable, io.reactivex.internal.fuseable.ConditionalSubscriber, io.reactivex.internal.subscriptions.*, io.reactivex.internal.util.BackpressureHelper

Emits a range of long values.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv final long
pack-priv final long

Constructor Summary

AccessConstructor and Description
public
FlowableRangeLong(long start, long count)

Method Summary

Modifier and TypeMethod and Description
public void
subscribeActual(Subscriber<? super Long>
the incoming Subscriber, never null
s
)

Implements abstract io.reactivex.Flowable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Subscribers.
Inherited from io.reactivex.Flowable:
allambambArrayambWithanyasblockingFirstblockingFirstblockingForEachblockingIterableblockingIterableblockingLastblockingLastblockingLatestblockingMostRecentblockingNextblockingSingleblockingSingleblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribeblockingSubscribebufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferbufferSizecachecacheWithInitialCapacitycastcollectcollectIntocombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestcombineLatestDelayErrorcombineLatestDelayErrorcombineLatestDelayErrorcombineLatestDelayErrorcombineLatestDelayErrorcombineLatestDelayErrorcomposeconcatconcatconcatconcatconcatconcatconcatArrayconcatArrayDelayErrorconcatArrayEagerconcatArrayEagerconcatArrayEagerDelayErrorconcatArrayEagerDelayErrorconcatDelayErrorconcatDelayErrorconcatDelayErrorconcatEagerconcatEagerconcatEagerconcatEagerconcatMapconcatMapconcatMapCompletableconcatMapCompletableconcatMapCompletableDelayErrorconcatMapCompletableDelayErrorconcatMapCompletableDelayErrorconcatMapDelayErrorconcatMapDelayErrorconcatMapEagerconcatMapEagerconcatMapEagerDelayErrorconcatMapEagerDelayErrorconcatMapIterableconcatMapIterableconcatMapMaybeconcatMapMaybeconcatMapMaybeDelayErrorconcatMapMaybeDelayErrorconcatMapMaybeDelayErrorconcatMapSingleconcatMapSingleconcatMapSingleDelayErrorconcatMapSingleDelayErrorconcatMapSingleDelayErrorconcatWithconcatWithconcatWithconcatWithcontainscountcreatedebouncedebouncedebouncedefaultIfEmptydeferdelaydelaydelaydelaydelaydelaydelaySubscriptiondelaySubscriptiondelaySubscriptiondematerializedematerializedistinctdistinctdistinctdistinctUntilChangeddistinctUntilChangeddistinctUntilChangeddoAfterNextdoAfterTerminatedoFinallydoOnCanceldoOnCompletedoOnEachdoOnEachdoOnErrordoOnLifecycledoOnNextdoOnRequestdoOnSubscribedoOnTerminateelementAtelementAtelementAtOrErroremptyerrorerrorfilterfirstfirstElementfirstOrErrorflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapflatMapCompletableflatMapCompletableflatMapIterableflatMapIterableflatMapIterableflatMapIterableflatMapMaybeflatMapMaybeflatMapSingleflatMapSingleforEachforEachWhileforEachWhileforEachWhilefromArrayfromCallablefromFuturefromFuturefromFuturefromFuturefromIterablefromPublishergenerategenerategenerategenerategenerategroupBygroupBygroupBygroupBygroupBygroupBygroupJoinhideignoreElementsintervalintervalintervalintervalintervalRangeintervalRangeisEmptyjoinjustjustjustjustjustjustjustjustjustjustlastlastElementlastOrErrorliftlimitmapmaterializemergemergemergemergemergemergemergemergemergeArraymergeArraymergeArrayDelayErrormergeArrayDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeDelayErrormergeWithmergeWithmergeWithmergeWithneverobserveOnobserveOnobserveOnofTypeonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureBufferonBackpressureDroponBackpressureDroponBackpressureLatestonErrorResumeNextonErrorResumeNextonErrorReturnonErrorReturnItemonExceptionResumeNextonTerminateDetachparallelparallelparallelpublishpublishpublishpublishrangerangeLongrebatchRequestsreducereducereduceWithrepeatrepeatrepeatUntilrepeatWhenreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayreplayretryretryretryretryretryretryUntilretryWhensafeSubscribesamplesamplesamplesamplesamplesamplescanscanscanWithsequenceEqualsequenceEqualsequenceEqualsequenceEqualserializesharesinglesingleElementsingleOrErrorskipskipskipskipLastskipLastskipLastskipLastskipLastskipLastskipUntilskipWhilesortedsortedstartWithstartWithstartWithstartWithArraysubscribesubscribesubscribesubscribesubscribesubscribesubscribesubscribeOnsubscribeOnsubscribeWithswitchIfEmptyswitchMapswitchMapswitchMapCompletableswitchMapCompletableDelayErrorswitchMapDelayErrorswitchMapDelayErrorswitchMapMaybeswitchMapMaybeDelayErrorswitchMapSingleswitchMapSingleDelayErrorswitchOnNextswitchOnNextswitchOnNextDelayErrorswitchOnNextDelayErrortaketaketaketakeLasttakeLasttakeLasttakeLasttakeLasttakeLasttakeLasttakeLasttakeLasttakeUntiltakeUntiltakeWhiletesttesttestthrottleFirstthrottleFirstthrottleLastthrottleLastthrottleLatestthrottleLatestthrottleLatestthrottleLatestthrottleWithTimeoutthrottleWithTimeouttimeIntervaltimeIntervaltimeIntervaltimeIntervaltimeouttimeouttimeouttimeouttimeouttimeouttimeouttimeouttimertimertimestamptimestamptimestamptimestamptotoFuturetoListtoListtoListtoMaptoMaptoMaptoMultimaptoMultimaptoMultimaptoMultimaptoObservabletoSortedListtoSortedListtoSortedListtoSortedListunsafeCreateunsubscribeOnusingusingwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwindowwithLatestFromwithLatestFromwithLatestFromwithLatestFromwithLatestFromwithLatestFromzipzipzipzipzipzipzipzipzipzipzipzipzipArrayzipIterablezipWithzipWithzipWithzipWith

Field Detail

endback to summary
pack-priv final long end
startback to summary
pack-priv final long start

Constructor Detail

FlowableRangeLongback to summary
public FlowableRangeLong(long start, long count)

Method Detail

subscribeActualback to summary
public void subscribeActual(Subscriber<? super Long> s)

Implements abstract io.reactivex.Flowable.subscribeActual.

Doc from io.reactivex.Flowable.subscribeActual.

Operator implementations (both source and intermediate) should implement this method that performs the necessary business logic and handles the incoming Subscribers.

There is no need to call any of the plugin hooks on the current Flowable instance or the Subscriber; all hooks and basic safeguards have been applied by subscribe(Subscriber) before this method gets called.

Parameters
s:Subscriber<? super Long>

the incoming Subscriber, never null

Annotations
@Override
io.reactivex.internal.operators.flowable back to summary

pack-priv abstract Class FlowableRangeLong.BaseRangeSubscription

extends BasicQueueSubscription<Long>
Class Inheritance
Known Direct Subclasses
io.reactivex.internal.operators.flowable.FlowableRangeLong.RangeSubscription, io.reactivex.internal.operators.flowable.FlowableRangeLong.RangeConditionalSubscription

Field Summary

Modifier and TypeField and Description
pack-priv volatile boolean
pack-priv final long
pack-priv long
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
BaseRangeSubscription(long index, long end)

Method Summary

Modifier and TypeMethod and Description
public final void
cancel()

Implements org.reactivestreams.Subscription.cancel.

Request the Publisher to stop sending data and clean up resources.
public final void
clear()

Implements io.reactivex.internal.fuseable.SimpleQueue.clear.

Removes all enqueued items from this queue.
pack-priv abstract void
public final boolean
isEmpty()

Implements io.reactivex.internal.fuseable.SimpleQueue.isEmpty.

Returns true if the queue is empty.
public final Long
poll()

Implements io.reactivex.internal.fuseable.SimpleQueue.poll.

Tries to dequeue a value (non-null) or returns null if the queue is empty.
public final void
request(long
the strictly positive number of elements to requests to the upstream Publisher
n
)

Implements org.reactivestreams.Subscription.request.

No events will be sent by a Publisher until demand is signaled via this method.
public final int
requestFusion(int
the requested fusion mode, allowed values are SYNC, ASYNC, ANY combined with BOUNDARY (e.g., requestFusion(SYNC | BOUNDARY)).
mode
)

Implements io.reactivex.internal.fuseable.QueueFuseable.requestFusion.

Request a fusion mode from the upstream.
pack-priv abstract void
slowPath(long r)

Inherited from io.reactivex.internal.subscriptions.BasicQueueSubscription:
offeroffer

Field Detail

cancelledback to summary
pack-priv volatile boolean cancelled
endback to summary
pack-priv final long end
indexback to summary
pack-priv long index
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.reactivex.internal.subscriptions.BasicQueueSubscription.serialVersionUID.

Constructor Detail

BaseRangeSubscriptionback to summary
pack-priv BaseRangeSubscription(long index, long end)

Method Detail

cancelback to summary
public final void cancel()

Implements org.reactivestreams.Subscription.cancel.

Doc from org.reactivestreams.Subscription.cancel.

Request the Publisher to stop sending data and clean up resources.

Data may still be sent to meet previously signalled demand after calling cancel.

Annotations
@Override
clearback to summary
public final void clear()

Implements io.reactivex.internal.fuseable.SimpleQueue.clear.

Doc from io.reactivex.internal.fuseable.SimpleQueue.clear.

Removes all enqueued items from this queue.

Annotations
@Override
fastPathback to summary
pack-priv abstract void fastPath()
isEmptyback to summary
public final boolean isEmpty()

Implements io.reactivex.internal.fuseable.SimpleQueue.isEmpty.

Doc from io.reactivex.internal.fuseable.SimpleQueue.isEmpty.

Returns true if the queue is empty.

Note however that due to potential fused functions in poll() it is possible this method returns false but then poll() returns null because the fused function swallowed the available item(s).

Returns:boolean

true if the queue is empty

Annotations
@Override
pollback to summary
public final Long poll()

Implements io.reactivex.internal.fuseable.SimpleQueue.poll.

Doc from io.reactivex.internal.fuseable.SimpleQueue.poll.

Tries to dequeue a value (non-null) or returns null if the queue is empty.

If the producer uses offer(Object, Object) and when polling in pairs, if the first poll() returns a non-null item, the second poll() is guaranteed to return a non-null item as well.

Returns:Long

the item or null to indicate an empty queue

Annotations
@Nullable
@Override
requestback to summary
public final void request(long n)

Implements org.reactivestreams.Subscription.request.

Doc from org.reactivestreams.Subscription.request.

No events will be sent by a Publisher until demand is signaled via this method.

It can be called however often and whenever needed—but if the outstanding cumulative demand ever becomes Long.MAX_VALUE or more, it may be treated by the Publisher as "effectively unbounded".

Whatever has been requested can be sent by the Publisher so only signal demand for what can be safely handled.

A Publisher can send less than is requested if the stream ends but then must emit either Subscriber#onError(Throwable) or Subscriber#onComplete().

Parameters
n:long

the strictly positive number of elements to requests to the upstream Publisher

Annotations
@Override
requestFusionback to summary
public final int requestFusion(int mode)

Implements io.reactivex.internal.fuseable.QueueFuseable.requestFusion.

Doc from io.reactivex.internal.fuseable.QueueFuseable.requestFusion.

Request a fusion mode from the upstream.

This should be called before onSubscribe returns.

Calling this method multiple times or after onSubscribe finished is not allowed and may result in undefined behavior.

Parameters
mode:int

the requested fusion mode, allowed values are SYNC, ASYNC, ANY combined with BOUNDARY (e.g., requestFusion(SYNC | BOUNDARY)).

Returns:int

the established fusion mode: NONE, SYNC, ASYNC.

Annotations
@Override
slowPathback to summary
pack-priv abstract void slowPath(long r)
io.reactivex.internal.operators.flowable back to summary

pack-priv final Class FlowableRangeLong.RangeConditionalSubscription

extends BaseRangeSubscription
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final ConditionalSubscriber<? super Long>
private static final long
Inherited from io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription:
cancelledendindex

Constructor Summary

AccessConstructor and Description
pack-priv
RangeConditionalSubscription(ConditionalSubscriber<? super Long> actual, long index, long end)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
Inherited from io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription:
cancelclearisEmptypollrequestrequestFusion

Field Detail

downstreamback to summary
pack-priv final ConditionalSubscriber<? super Long> downstream
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription.serialVersionUID.

Constructor Detail

RangeConditionalSubscriptionback to summary
pack-priv RangeConditionalSubscription(ConditionalSubscriber<? super Long> actual, long index, long end)

Method Detail

fastPathback to summary
pack-priv void fastPath()

Implements abstract io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription.fastPath.

Annotations
@Override
slowPathback to summary
pack-priv void slowPath(long r)

Implements abstract io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription.slowPath.

Annotations
@Override
io.reactivex.internal.operators.flowable back to summary

pack-priv final Class FlowableRangeLong.RangeSubscription

extends BaseRangeSubscription
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final Subscriber<? super Long>
private static final long
Inherited from io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription:
cancelledendindex

Constructor Summary

AccessConstructor and Description
pack-priv
RangeSubscription(Subscriber<? super Long> actual, long index, long end)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
Inherited from io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription:
cancelclearisEmptypollrequestrequestFusion

Field Detail

downstreamback to summary
pack-priv final Subscriber<? super Long> downstream
serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription.serialVersionUID.

Constructor Detail

RangeSubscriptionback to summary
pack-priv RangeSubscription(Subscriber<? super Long> actual, long index, long end)

Method Detail

fastPathback to summary
pack-priv void fastPath()

Implements abstract io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription.fastPath.

Annotations
@Override
slowPathback to summary
pack-priv void slowPath(long r)

Implements abstract io.reactivex.internal.operators.flowable.FlowableRangeLong.BaseRangeSubscription.slowPath.

Annotations
@Override