接口 BaseFilter.Listener

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      void onError​(Throwable t, Invoker<?> invoker, Invocation invocation)
      This method will be called on detection of framework exceptions, for example, TimeoutException, NetworkException Exception raised in Filters, etc.
      void onResponse​(Result appResponse, Invoker<?> invoker, Invocation invocation)
      This method will only be called on successful remote rpc execution, that means, the service in on remote received the request and the result (normal or exceptional) returned successfully.
    • 方法详细资料

      • onResponse

        void onResponse​(Result appResponse,
                        Invoker<?> invoker,
                        Invocation invocation)
        This method will only be called on successful remote rpc execution, that means, the service in on remote received the request and the result (normal or exceptional) returned successfully.
        参数:
        appResponse - , the rpc call result, it can represent both normal result and exceptional result
        invoker - , context
        invocation - , context
      • onError

        void onError​(Throwable t,
                     Invoker<?> invoker,
                     Invocation invocation)
        This method will be called on detection of framework exceptions, for example, TimeoutException, NetworkException Exception raised in Filters, etc.
        参数:
        t - , framework exception
        invoker - , context
        invocation - , context