Interface Caller.Callback

  • All Implemented Interfaces:

    
    public interface Caller.Callback<TResponse extends Object>
    
                        

    the callback type to notify the result of this caller.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit onPreRequest(HttpRequest rawRequest) Called before the requesting started.
      abstract Unit onResponse(Caller<TResponse> caller, Response<TResponse> response) Called when the Response is successfully returned.
      abstract Unit onFailure(Caller<TResponse> caller, Exception exception) Called when a network exception occurred talking to the server or when an unexpected exception occurred creating the request or processing the response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait