接口 RequestFuture

  • 所有已知实现类:
    DefaultRequestFuture

    public interface RequestFuture
    future for request.
    版本:
    $Id: RequestFuture.java, v 0.1 2020年09月01日 6:31 PM liuzunfei Exp $
    作者:
    liuzunfei
    • 方法详细资料

      • isDone

        boolean isDone()
        check that it is done or not..
        返回:
        is done .
      • get

        Response get()
              throws java.lang.Exception
        get response without timeouts.
        返回:
        return response if done.
        抛出:
        java.lang.Exception - exception throws .
      • get

        Response get​(long timeout)
              throws java.lang.Exception
        get response with a given timeouts.
        参数:
        timeout - timeout milliseconds.
        返回:
        return response if done.
        抛出:
        java.lang.Exception - exception throws .