Interface AsyncStreamResponse.Handler

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onNext(T value) Called whenever a chunk is received.
      Unit onComplete(Optional<Throwable> error) Called when a stream is fully consumed, errors, or gets closed early.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onNext

         abstract Unit onNext(T value)

        Called whenever a chunk is received.

      • onComplete

         Unit onComplete(Optional<Throwable> error)

        Called when a stream is fully consumed, errors, or gets closed early.

        onNext will not be called once this method is called.

        Parameters:
        error - Non-empty if the stream completed due to an error.