Publisher.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the publisher T> Flux | flowPublisherToFlux(Flow.
the source Publisher to convert publisherReturn a |
| public static < the type of the publisher T> Flow. | publisherToFlowPublisher(final Publisher<T>
the source Publisher to convert publisher)Return a java |
| JdkFlowAdapter | back to summary |
|---|---|
| pack-priv JdkFlowAdapter() | |
| flowPublisherToFlux | back to summary |
|---|---|
| public static <T> Flux Return a | |
| publisherToFlowPublisher | back to summary |
|---|---|
| public static <T> Flow. Return a java | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | scanUnsafe(Scannable.
a keyAttr to resolve for the component.Implements reactor. |
| public void | subscribe(final 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.
|
| pub | back to summary |
|---|---|
| private final Flow. | |
| FlowPublisherAsFlux | back to summary |
|---|---|
| private FlowPublisherAsFlux(Flow. | |
| scanUnsafe | back to summary |
|---|---|
| public Object scanUnsafe(Scannable. Implements 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(final 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 |
|---|---|
| private final Flow. | |
| pack-priv Subscription |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements java. |
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(T
the element signaled o)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(final Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements reactor. onNext(Object) before
calling Subscription#request(long).
|
| public void | request(long
the increment of demand; a value of n)Long.MAX_VALUE may be considered as effectively unboundedImplements java. n of items to the current
unfulfilled demand for this subscription.
|
| subscriber | back to summary |
|---|---|
| private final Flow. | |
| subscription | back to summary |
|---|---|
| pack-priv Subscription subscription | |
| FlowSubscriber | back to summary |
|---|---|
| public FlowSubscriber(Flow. | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements java. Doc from java. Causes the Subscriber to (eventually) stop receiving
messages. Implementation is best-effort -- additional
messages may be received after invoking this method.
A cancelled subscription need not ever receive an
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements org. Doc from org. Successful terminal state.
No further events will be sent even if
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements org. Doc from org. Failed terminal state.
No further events will be sent even if | |
| onNext | back to summary |
|---|---|
| public void onNext(T o) Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(final Subscription s) Implements reactor. Doc from reactor. Implementors should initialize any state used by
Note that an invalid request
No data will start flowing until
It is the responsibility of this
The
| |
| request | back to summary |
|---|---|
| public void request(long n) Implements java. Doc from java. Adds the given number
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | subscribe(Flow.
the subscriber subscriberImplements java. |
| pub | back to summary |
|---|---|
| private final Publisher<T> pub | |
| PublisherAsFlowPublisher | back to summary |
|---|---|
| private PublisherAsFlowPublisher(Publisher<T> pub) | |
| subscribe | back to summary |
|---|---|
| public void subscribe(Flow. Implements java. Doc from java. Adds the given Subscriber if possible. If already
subscribed, or the attempt to subscribe fails due to policy
violations or errors, the Subscriber's
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Subscriber | |
| pack-priv Flow. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. Publisher to stop sending data and clean up resources.
|
| public void | onComplete()
Implements java. |
| public void | onError(Throwable
the exception throwable)Implements java. |
| public void | onNext(T
the item o)Implements java. |
| public void | onSubscribe(final Flow.
a new subscription subscriptionImplements java. |
| 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.
|
| s | back to summary |
|---|---|
| private final Subscriber<? super T> s | |
| subscription | back to summary |
|---|---|
| pack-priv Flow. | |
| SubscriberToRS | back to summary |
|---|---|
| public SubscriberToRS(Subscriber<? super T> s) | |
| 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.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() Implements java. Doc from java. Method invoked when it is known that no additional Subscriber method invocations will occur for a Subscription that is not already terminated by error, after which no other Subscriber methods are invoked by the Subscription. If this method throws an exception, resulting behavior is undefined.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable throwable) Implements java. Doc from java. Method invoked upon an unrecoverable error encountered by a Publisher or Subscription, after which no other Subscriber methods are invoked by the Subscription. If this method itself throws an exception, resulting behavior is undefined. | |
| onNext | back to summary |
|---|---|
| public void onNext(T o) Implements java. Doc from java. Method invoked with a Subscription's next item. If this method throws an exception, resulting behavior is not guaranteed, but may cause the Subscription to be cancelled.
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(final Flow. Implements java. Doc from java. Method invoked prior to invoking any other Subscriber methods for the given Subscription. If this method throws an exception, resulting behavior is not guaranteed, but may cause the Subscription not to be established or to be cancelled. Typically, implementations of this method invoke
| |
| 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 | |