接口 RequestCallBack<T extends Response>

  • 所有已知实现类:
    AbstractRequestCallBack

    public interface RequestCallBack<T extends Response>
    call back for request.
    版本:
    $Id: PushCallBack.java, v 0.1 2020年09月01日 6:33 PM liuzunfei Exp $
    作者:
    liuzunfei
    • 方法详细资料

      • getExecutor

        java.util.concurrent.Executor getExecutor()
        get executor on callback.
        返回:
        executor.
      • getTimeout

        long getTimeout()
        get timeout mills.
        返回:
        timeouts.
      • onResponse

        void onResponse​(T response)
        called on success.
        参数:
        response - response received.
      • onException

        void onException​(java.lang.Throwable e)
        called on failed.
        参数:
        e - exception throwed.