Class FlowableOnErrorComplete<T>

  • Type Parameters:
    T - the value type
    All Implemented Interfaces:
    HasUpstreamPublisher<T>, org.reactivestreams.Publisher<T>

    public final class FlowableOnErrorComplete<T>
    extends AbstractFlowableWithUpstream<T,​T>
    Emits an onComplete if the source emits an onError and the predicate returns true for that Throwable.
    Since:
    3.0.0
    • Field Detail

      • predicate

        final Predicate<? super java.lang.Throwable> predicate
    • Constructor Detail

      • FlowableOnErrorComplete

        public FlowableOnErrorComplete​(Flowable<T> source,
                                       Predicate<? super java.lang.Throwable> predicate)
    • Method Detail

      • subscribeActual

        protected void subscribeActual​(org.reactivestreams.Subscriber<? super T> observer)
        Description copied from class: Flowable
        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 Flowable.subscribe(Subscriber) before this method gets called.

        Specified by:
        subscribeActual in class Flowable<T>
        Parameters:
        observer - the incoming Subscriber, never null