Class FlowableEmpty

  • All Implemented Interfaces:
    Supplier<java.lang.Object>, ScalarSupplier<java.lang.Object>, org.reactivestreams.Publisher<java.lang.Object>

    public final class FlowableEmpty
    extends Flowable<java.lang.Object>
    implements ScalarSupplier<java.lang.Object>
    A source Flowable that signals an onSubscribe() + onComplete() only.
    • Field Detail

      • INSTANCE

        public static final Flowable<java.lang.Object> INSTANCE
    • Constructor Detail

      • FlowableEmpty

        private FlowableEmpty()
    • Method Detail

      • subscribeActual

        public void subscribeActual​(org.reactivestreams.Subscriber<? super java.lang.Object> s)
        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<java.lang.Object>
        Parameters:
        s - the incoming Subscriber, never null
      • get

        public java.lang.Object get()
        Description copied from interface: Supplier
        Produces a value or throws an exception.
        Specified by:
        get in interface ScalarSupplier<java.lang.Object>
        Specified by:
        get in interface Supplier<java.lang.Object>
        Returns:
        the value produced