Class QueueingAsyncHandler

  • All Implemented Interfaces:
    org.asynchttpclient.AsyncHandler<java.lang.Boolean>

    public class QueueingAsyncHandler
    extends java.lang.Object
    implements org.asynchttpclient.AsyncHandler<java.lang.Boolean>
    Created by Karel Maesen, Geovise BVBA on 05/05/2020.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.asynchttpclient.AsyncHandler

        org.asynchttpclient.AsyncHandler.State
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      void emitTo​(io.reactivex.rxjava3.core.Emitter<ServerResponseElement> emitter)  
      org.asynchttpclient.AsyncHandler.State onBodyPartReceived​(org.asynchttpclient.HttpResponseBodyPart bodyPart)  
      java.lang.Boolean onCompleted()  
      org.asynchttpclient.AsyncHandler.State onHeadersReceived​(io.netty.handler.codec.http.HttpHeaders headers)  
      org.asynchttpclient.AsyncHandler.State onStatusReceived​(org.asynchttpclient.HttpResponseStatus responseStatus)  
      void onThrowable​(java.lang.Throwable t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.asynchttpclient.AsyncHandler

        onConnectionOffer, onConnectionPoolAttempt, onConnectionPooled, onHostnameResolutionAttempt, onHostnameResolutionFailure, onHostnameResolutionSuccess, onRequestSend, onRetry, onTcpConnectAttempt, onTcpConnectFailure, onTcpConnectSuccess, onTlsHandshakeAttempt, onTlsHandshakeFailure, onTlsHandshakeSuccess, onTrailingHeadersReceived
    • Constructor Detail

      • QueueingAsyncHandler

        public QueueingAsyncHandler()
    • Method Detail

      • onStatusReceived

        public org.asynchttpclient.AsyncHandler.State onStatusReceived​(org.asynchttpclient.HttpResponseStatus responseStatus)
                                                                throws java.lang.Exception
        Specified by:
        onStatusReceived in interface org.asynchttpclient.AsyncHandler<java.lang.Boolean>
        Throws:
        java.lang.Exception
      • onHeadersReceived

        public org.asynchttpclient.AsyncHandler.State onHeadersReceived​(io.netty.handler.codec.http.HttpHeaders headers)
                                                                 throws java.lang.Exception
        Specified by:
        onHeadersReceived in interface org.asynchttpclient.AsyncHandler<java.lang.Boolean>
        Throws:
        java.lang.Exception
      • onBodyPartReceived

        public org.asynchttpclient.AsyncHandler.State onBodyPartReceived​(org.asynchttpclient.HttpResponseBodyPart bodyPart)
                                                                  throws java.lang.Exception
        Specified by:
        onBodyPartReceived in interface org.asynchttpclient.AsyncHandler<java.lang.Boolean>
        Throws:
        java.lang.Exception
      • onThrowable

        public void onThrowable​(java.lang.Throwable t)
        Specified by:
        onThrowable in interface org.asynchttpclient.AsyncHandler<java.lang.Boolean>
      • onCompleted

        public java.lang.Boolean onCompleted()
                                      throws java.lang.Exception
        Specified by:
        onCompleted in interface org.asynchttpclient.AsyncHandler<java.lang.Boolean>
        Throws:
        java.lang.Exception
      • cancel

        public void cancel()