Module  java.base

Interface Flow.Subscriber

    • Method Detail

      Limited 8 Mariota Green College Jersey Marcus Stitched Ducks
      • onNext

        void onNext​(T item)
        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.
        Parameters:
        item - the item
      • onError

        void onError​(Throwable throwable)
        33 Stitched Jersey Marcus White Allen Trojans 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.
        Parameters:
        throwable - the exception
      • 33 Stitched Jersey Marcus White Allen Trojans onComplete

        void onComplete​()
        33 Stitched Jersey Marcus White Allen Trojans 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.