All other Publisher and Subject methods are thread-safe by design.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final FlowableProcessor | actual
The actual subscriber to serialize Subscriber calls to. |
| pack-priv volatile boolean | done
Indicates a terminal event has been received and all further events will be dropped. |
| pack-priv boolean | emitting
Indicates an emission is going on, guarded by this. |
| pack-priv AppendOnlyLinkedArrayList | queue
If not null, it holds the missed NotificationLite events. |
| Access | Constructor and Description |
|---|---|
| pack-priv | SerializedProcessor(final FlowableProcessor<T>
the subject wrapped actual)Constructor that wraps an actual subject. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public Throwable | getThrowable()
Implements abstract io. |
| public boolean | hasComplete()
Implements abstract io. |
| public boolean | hasSubscribers()
Implements abstract io. |
| public boolean | hasThrowable()
Implements abstract io. |
| public void | |
| public void | onError(Throwable
the throwable signaled t)Implements org. |
| public void | onNext(T
the element signaled t)Implements org. Publisher in response to requests to Subscription#request(long).
|
| public void | onSubscribe(Subscription
the s)Subscription that allows requesting data via Subscription#request(long)Implements org. onNext(Object) is established before
calling Subscription#request(long).
|
| protected void | subscribeActual(Subscriber<? super T>
the incoming Subscriber, never null s)Implements abstract io. Subscribers.
|
| actual | back to summary |
|---|---|
| pack-priv final FlowableProcessor<T> actual The actual subscriber to serialize Subscriber calls to. | |
| done | back to summary |
|---|---|
| pack-priv volatile boolean done Indicates a terminal event has been received and all further events will be dropped. | |
| emitting | back to summary |
|---|---|
| pack-priv boolean emitting Indicates an emission is going on, guarded by this. | |
| queue | back to summary |
|---|---|
| pack-priv AppendOnlyLinkedArrayList<Object> queue If not null, it holds the missed NotificationLite events. | |
| SerializedProcessor | back to summary |
|---|---|
| pack-priv SerializedProcessor(final FlowableProcessor<T> actual) Constructor that wraps an actual subject.
| |
| emitLoop | back to summary |
|---|---|
| pack-priv void emitLoop() Loops until all notifications in the queue has been processed. | |
| getThrowable | back to summary |
|---|---|
| public Throwable getThrowable() Implements abstract io. Doc from io. Returns the error that caused the FlowableProcessor to terminate or null if the FlowableProcessor hasn't terminated yet. The method is thread-safe. | |
| hasComplete | back to summary |
|---|---|
| public boolean hasComplete() Implements abstract io. Doc from io. Returns true if the FlowableProcessor has reached a terminal state through a complete event. The method is thread-safe.
| |
| hasSubscribers | back to summary |
|---|---|
| public boolean hasSubscribers() Implements abstract io. Doc from io. Returns true if the FlowableProcessor has subscribers. The method is thread-safe.
| |
| hasThrowable | back to summary |
|---|---|
| public boolean hasThrowable() Implements abstract io. Doc from io. Returns true if the FlowableProcessor has reached a terminal state through an error event. The method is thread-safe.
| |
| 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 t) Implements org. Doc from org. Data notification sent by the
| |
| onSubscribe | back to summary |
|---|---|
| public void onSubscribe(Subscription s) Implements org. Doc from io. Implementors of this method should make sure everything that needs
to be visible in
No data will start flowing until
It is the responsibility of this
The
| |
| subscribeActual | back to summary |
|---|---|
| protected 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
| |