Interface TimeoutHandler


  • public interface TimeoutHandler
    Handler, which processes suspended Response timeout and is able to either confirm it or reset.
    Author:
    Alexey Stashok
    • Method Detail

      • onTimeout

        boolean onTimeout​(Response response)
        Method is called, when suspended Response timeout expired. The custom implementation may decide to confirm timeout and return true, so the Response will be canceled immediately after that, or return false to reset the timeout and give more time for processing.
        Parameters:
        response - Response.
        Returns:
        true to cancel the Response processing, or false to reset the timeout.