Class AsyncCachingExec.AsyncExecCallbackWrapper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void completed()
      Triggered to signal completion of the message exchange.
      void failed​(java.lang.Exception cause)
      Triggered to signal a failure occurred during the message exchange.
      void handleInformationResponse​(org.apache.hc.core5.http.HttpResponse response)
      Triggered to signal receipt of an intermediate response message.
      org.apache.hc.core5.http.nio.AsyncDataConsumer handleResponse​(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.EntityDetails entityDetails)
      Triggered to signal receipt of a response message head sent by the server in response to the request being executed.
      • Methods inherited from class java.lang.Object

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

      • command

        private final java.lang.Runnable command
    • Constructor Detail

      • AsyncExecCallbackWrapper

        AsyncExecCallbackWrapper​(AsyncExecCallback asyncExecCallback,
                                 java.lang.Runnable command)
    • Method Detail

      • handleResponse

        public org.apache.hc.core5.http.nio.AsyncDataConsumer handleResponse​(org.apache.hc.core5.http.HttpResponse response,
                                                                             org.apache.hc.core5.http.EntityDetails entityDetails)
                                                                      throws org.apache.hc.core5.http.HttpException,
                                                                             java.io.IOException
        Description copied from interface: AsyncExecCallback
        Triggered to signal receipt of a response message head sent by the server in response to the request being executed.
        Specified by:
        handleResponse in interface AsyncExecCallback
        Parameters:
        response - the response message head.
        entityDetails - the response entity details or null if the response does not enclose an entity.
        Returns:
        the data consumer to be used for processing of incoming response message body.
        Throws:
        org.apache.hc.core5.http.HttpException
        java.io.IOException
      • handleInformationResponse

        public void handleInformationResponse​(org.apache.hc.core5.http.HttpResponse response)
                                       throws org.apache.hc.core5.http.HttpException,
                                              java.io.IOException
        Description copied from interface: AsyncExecCallback
        Triggered to signal receipt of an intermediate response message.
        Specified by:
        handleInformationResponse in interface AsyncExecCallback
        Parameters:
        response - the intermediate response message.
        Throws:
        org.apache.hc.core5.http.HttpException
        java.io.IOException
      • completed

        public void completed()
        Description copied from interface: AsyncExecCallback
        Triggered to signal completion of the message exchange.

        Implementations of this message are expected to perform resource deallocation allocated in the course of the request execution and response processing.

        Specified by:
        completed in interface AsyncExecCallback
      • failed

        public void failed​(java.lang.Exception cause)
        Description copied from interface: AsyncExecCallback
        Triggered to signal a failure occurred during the message exchange.

        Implementations of this message are expected to perform resource deallocation allocated in the course of the request execution and response processing.

        Specified by:
        failed in interface AsyncExecCallback