Package cn.sliew.flinkful.rest.http
Class AsyncClient
- java.lang.Object
-
- cn.sliew.flinkful.rest.http.AsyncClient
-
- Direct Known Subclasses:
ClusterHttpClient,DashboardHttpClient,DataSetHttpClient,JarHttpClient,JobHttpClient,JobManagerHttpClient,SavepointHttpClient,TaskManagerHttpClient
public abstract class AsyncClient extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AsyncClient(okhttp3.OkHttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.EmptyResponseBody>remoteCall(okhttp3.Request request)protected <Out,In>
java.util.concurrent.CompletableFuture<Out>remoteCall(okhttp3.Request request, java.lang.Class<Out> outClass, java.lang.Class<In> parameterClasses)protected <T> java.util.concurrent.CompletableFuture<T>remoteCall(okhttp3.Request request, java.lang.Class<T> responseClass)
-
-
-
Method Detail
-
remoteCall
protected java.util.concurrent.CompletableFuture<org.apache.flink.runtime.rest.messages.EmptyResponseBody> remoteCall(okhttp3.Request request) throws java.io.IOException- Throws:
java.io.IOException
-
remoteCall
protected <Out,In> java.util.concurrent.CompletableFuture<Out> remoteCall(okhttp3.Request request, java.lang.Class<Out> outClass, java.lang.Class<In> parameterClasses) throws java.io.IOException- Throws:
java.io.IOException
-
remoteCall
protected <T> java.util.concurrent.CompletableFuture<T> remoteCall(okhttp3.Request request, java.lang.Class<T> responseClass) throws java.io.IOException- Throws:
java.io.IOException
-
-