Package cn.sliew.flinkful.rest.http
Class FutureResponse
- java.lang.Object
-
- cn.sliew.flinkful.rest.http.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 voidonFailure(okhttp3.Call call, java.io.IOException e)voidonResponse(okhttp3.Call call, okhttp3.Response response)
-
-
-
Method Detail
-
onFailure
public void onFailure(@NotNull okhttp3.Call call, @NotNull java.io.IOException e)- Specified by:
onFailurein interfaceokhttp3.Callback
-
onResponse
public void onResponse(@NotNull okhttp3.Call call, @NotNull okhttp3.Response response) throws java.io.IOException- Specified by:
onResponsein interfaceokhttp3.Callback- Throws:
java.io.IOException
-
-