接口 RequestFuture

所有已知实现类:
DefaultRequestFuture

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

    修饰符和类型
    方法
    说明
    get()
    get response without timeouts.
    get​(long timeout)
    get response with a given timeouts.
    boolean
    check that it is done or not..
  • 方法详细资料

    • isDone

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

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

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