Class FutureResponse

  • All Implemented Interfaces:
    okhttp3.Callback

    public class FutureResponse
    extends java.lang.Object
    implements okhttp3.Callback
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.concurrent.CompletableFuture<okhttp3.Response> future  
    • Constructor Summary

      Constructors 
      Constructor Description
      FutureResponse()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onFailure​(okhttp3.Call call, java.io.IOException e)  
      void onResponse​(okhttp3.Call call, okhttp3.Response response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • future

        public final java.util.concurrent.CompletableFuture<okhttp3.Response> future
    • Constructor Detail

      • FutureResponse

        public FutureResponse()
    • Method Detail

      • onFailure

        public void onFailure​(@NotNull
                              okhttp3.Call call,
                              @NotNull
                              java.io.IOException e)
        Specified by:
        onFailure in interface okhttp3.Callback
      • onResponse

        public void onResponse​(@NotNull
                               okhttp3.Call call,
                               @NotNull
                               okhttp3.Response response)
                        throws java.io.IOException
        Specified by:
        onResponse in interface okhttp3.Callback
        Throws:
        java.io.IOException