The stateSupplier may return null but your stateConsumer should be prepared to
handle it.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Callable | |
| pack-priv final BiFunction | |
| pack-priv final Consumer | |
| pack-priv final Callable |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | FluxGenerate(Callable<S> stateSupplier, BiFunction<S, SynchronousSink<T>, S> generator, Consumer<? super S> stateConsumer)
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. |
| public void | subscribe(CoreSubscriber<? super T>
the actual)Subscriber interested into the published sequenceImplements abstract reactor. Implements reactor. Publisher#subscribe(Subscriber) that will bypass
Hooks#onLastOperator(Function) pointcut.
|
| EMPTY_CALLABLE | back to summary |
|---|---|
| pack-priv static final Callable<V> EMPTY_CALLABLE | |
| generator | back to summary |
|---|---|
| pack-priv final BiFunction<S, SynchronousSink<T>, S> generator | |
| stateConsumer | back to summary |
|---|---|
| pack-priv final Consumer<? super S> stateConsumer | |
| stateSupplier | back to summary |
|---|---|
| pack-priv final Callable<S> stateSupplier | |
| FluxGenerate | back to summary |
|---|---|
pack-priv FluxGenerate(Consumer<SynchronousSink<T>> generator)
| |
| FluxGenerate | back to summary |
|---|---|
| pack-priv FluxGenerate(Callable<S> stateSupplier, BiFunction<S, SynchronousSink<T>, S> generator) | |
| FluxGenerate | back to summary |
|---|---|
| pack-priv FluxGenerate(Callable<S> stateSupplier, BiFunction<S, SynchronousSink<T>, S> generator, Consumer<? super S> stateConsumer) | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides default reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| subscribe | back to summary |
|---|---|
| public void subscribe(CoreSubscriber<? super T> actual) Implements abstract reactor. Implements reactor. Doc from reactor. An internal
In addition to behave as expected by
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CoreSubscriber | |
| pack-priv volatile boolean | |
| pack-priv Throwable | |
| pack-priv T | |
| pack-priv final BiFunction | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv volatile long | |
| pack-priv static final AtomicLongFieldUpdater | |
| pack-priv S | |
| pack-priv final Consumer | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | GenerateSubscription(CoreSubscriber<? super T> actual, S state, BiFunction<S, SynchronousSink<T>, S> generator, Consumer<? super S> stateConsumer)
|
| Modifier and Type | Method and Description |
|---|---|
| public CoreSubscriber | |
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| pack-priv void | |
| public void | clear()
Implements java. |
| public void | |
| public ContextView | contextView()
Overrides default reactor. ContextView for inspection.
|
| public Context | currentContext()
Implements reactor.
Deprecated
Return the current subscriber Context.
|
| public void | error(Throwable
the exception to signal, not null e)Implements reactor. |
| pack-priv void | |
| public boolean | isEmpty()
Implements java. true if this collection contains no elements.
|
| public void | next(T
the value to emit, not null t)Implements reactor. |
| public T | poll()
Implements java. null if this queue is empty.
|
| 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.
|
| public int | requestFusion(int
the mode requested by the intermediate operator requestedMode)Implements reactor. |
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Overrides default reactor. |
| public int | |
| pack-priv void |
| actual | back to summary |
|---|---|
| pack-priv final CoreSubscriber<? super T> actual | |
| cancelled | back to summary |
|---|---|
| pack-priv volatile boolean cancelled | |
| generatedError | back to summary |
|---|---|
| pack-priv Throwable generatedError | |
| generatedValue | back to summary |
|---|---|
| pack-priv T generatedValue | |
| generator | back to summary |
|---|---|
| pack-priv final BiFunction<S, SynchronousSink<T>, S> generator | |
| hasValue | back to summary |
|---|---|
| pack-priv boolean hasValue | |
| outputFused | back to summary |
|---|---|
| pack-priv boolean outputFused | |
| requested | back to summary |
|---|---|
| pack-priv volatile long requested | |
| REQUESTED | back to summary |
|---|---|
pack-priv static final AtomicLongFieldUpdater<FluxGenerate.
| |
| state | back to summary |
|---|---|
| pack-priv S state | |
| stateConsumer | back to summary |
|---|---|
| pack-priv final Consumer<? super S> stateConsumer | |
| terminate | back to summary |
|---|---|
| pack-priv boolean terminate | |
| GenerateSubscription | back to summary |
|---|---|
| pack-priv GenerateSubscription(CoreSubscriber<? super T> actual, S state, BiFunction<S, SynchronousSink<T>, S> generator, Consumer<? super S> stateConsumer) | |
| actual | back to summary |
|---|---|
| public CoreSubscriber Implements reactor.
| |
| 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.
| |
| cleanup | back to summary |
|---|---|
| pack-priv void cleanup(S s) | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this collection (optional operation). The collection will be empty after this method returns.
| |
| complete | back to summary |
|---|---|
| public void complete() Implements reactor.
| |
| contextView | back to summary |
|---|---|
| public ContextView contextView() Overrides default reactor. Doc from reactor. Return the current subscriber's context as a
| |
| currentContext | back to summary |
|---|---|
| public Context currentContext() Implements reactor. Doc from reactor. Deprecated
Return the current subscriber
| |
| error | back to summary |
|---|---|
| public void error(Throwable e) Implements reactor.
| |
| fastPath | back to summary |
|---|---|
| pack-priv void fastPath() | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public void next(T t) Implements reactor. Doc from reactor. Try emitting, might throw an unchecked exception.
| |
| poll | back to summary |
|---|---|
| public T poll() Implements java. Doc from java. Retrieves and removes the head of this queue,
or returns | |
| 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 | |
| requestFusion | back to summary |
|---|---|
| public int requestFusion(int requestedMode) Implements reactor. Doc from reactor. Request a specific fusion mode from this QueueSubscription. One should request either SYNC, ASYNC or ANY modes (never NONE) and the implementor should return NONE, SYNC or ASYNC (never ANY). For example, if a source supports only ASYNC fusion but the intermediate operator supports only SYNC fuseable sources, the operator may request SYNC fusion and the source can reject it via NONE, thus the operator can return NONE as well to downstream and the fusion doesn't happen.
| |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Overrides default reactor. Doc from reactor. This method is used internally by components to define their key-value mappings
in a single place. Although it is ignoring the generic type of the
For public consumption of attributes, prefer using | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |
| slowPath | back to summary |
|---|---|
| pack-priv void slowPath(long n) | |