| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Consumer | |
| pack-priv final BiFunction | |
| pack-priv final Callable |
| Access | Constructor and Description |
|---|---|
| public | FlowableGenerate(Callable<S> stateSupplier, BiFunction<S, Emitter<T>, S> generator, Consumer<? super S> disposeState)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | subscribeActual(Subscriber<? super T>
the incoming Subscriber, never null s)Implements abstract io. Subscribers.
|
| disposeState | back to summary |
|---|---|
| pack-priv final Consumer<? super S> disposeState | |
| generator | back to summary |
|---|---|
| pack-priv final BiFunction<S, Emitter<T>, S> generator | |
| stateSupplier | back to summary |
|---|---|
| pack-priv final Callable<S> stateSupplier | |
| FlowableGenerate | back to summary |
|---|---|
| public FlowableGenerate(Callable<S> stateSupplier, BiFunction<S, Emitter<T>, S> generator, Consumer<? super S> disposeState) | |
| subscribeActual | back to summary |
|---|---|
| public void subscribeActual(Subscriber<? super T> s) Implements abstract io. Doc from io. Operator implementations (both source and intermediate) should implement this method that
performs the necessary business logic and handles the incoming There is no need to call any of the plugin hooks on the current
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean | |
| pack-priv final Consumer | |
| pack-priv final Subscriber | |
| pack-priv final BiFunction | |
| pack-priv boolean | |
| private static final long | |
| pack-priv S | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | GeneratorSubscription(Subscriber<? super T> actual, BiFunction<S, ? super Emitter<T>, S> generator, Consumer<? super S> disposeState, S initialState)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| private void | |
| public void | |
| public void | onError(Throwable
the Throwable to signal, not null t)Implements io. |
| public void | onNext(T
the value to signal, not null t)Implements io. |
| public void | request(long
the strictly positive number of elements to requests to the upstream n)PublisherImplements org. Publisher until demand is signaled via this method.
|
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| disposeState | back to summary |
|---|---|
| pack-priv final Consumer<? super S> disposeState | |
| downstream | back to summary |
|---|---|
| pack-priv final Subscriber<? super T> downstream | |
| generator | back to summary |
|---|---|
| pack-priv final BiFunction<S, ? super Emitter<T>, S> generator | |
| hasNext | back to summary |
|---|---|
| pack-priv boolean hasNext | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| state | back to summary |
|---|---|
| pack-priv S state | |
| terminate | back to summary |
|---|---|
| pack-priv boolean terminate | |
| GeneratorSubscription | back to summary |
|---|---|
| pack-priv GeneratorSubscription(Subscriber<? super T> actual, BiFunction<S, ? super Emitter<T>, S> generator, Consumer<? super S> disposeState, S initialState) | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. Request the Data may still be sent to meet previously signalled demand after calling cancel.
| |
| dispose | back to summary |
|---|---|
| private void dispose(S s) | |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements io. Doc from io. Signal a completion.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements io. Doc from io. Signal a Throwable exception. | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements io. Doc from io. Signal a normal value.
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements org. Doc from org. No events will be sent by a
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
Whatever has been requested can be sent by the
A | |