Package com.marcnuri.yakc.retrofit
Class KubernetesHttpCall<T,W>
- java.lang.Object
-
- com.marcnuri.yakc.retrofit.KubernetesHttpCall<T,W>
-
- All Implemented Interfaces:
com.marcnuri.yakc.api.KubernetesCall<T>,com.marcnuri.yakc.api.KubernetesExecCall<T>,com.marcnuri.yakc.api.KubernetesListCall<T,W>,java.lang.Cloneable,retrofit2.Call<T>
public class KubernetesHttpCall<T,W> extends java.lang.Object implements com.marcnuri.yakc.api.KubernetesListCall<T,W>, com.marcnuri.yakc.api.KubernetesExecCall<T>Created by Marc Nuri on 2020-04-12.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()KubernetesHttpCall<T,W>clone()voidenqueue(retrofit2.Callback<T> callback)io.reactivex.Observable<com.marcnuri.yakc.api.ExecMessage>exec()okhttp3.WebSocketexec(okhttp3.WebSocketListener webSocketListener)retrofit2.Response<T>execute()okhttp3.ResponseexecuteRaw()Tget()<O> Oget(java.lang.Class<O> returnType)booleanisCanceled()booleanisExecuted()okhttp3.Requestrequest()java.util.stream.Stream<W>stream()okio.Timeouttimeout()io.reactivex.Observable<com.marcnuri.yakc.api.WatchEvent<W>>watch()
-
-
-
Method Detail
-
get
public T get() throws java.io.IOException
- Specified by:
getin interfacecom.marcnuri.yakc.api.KubernetesCall<T>- Throws:
java.io.IOException
-
get
public <O> O get(java.lang.Class<O> returnType) throws java.io.IOException- Specified by:
getin interfacecom.marcnuri.yakc.api.KubernetesCall<T>- Throws:
java.io.IOException
-
watch
public io.reactivex.Observable<com.marcnuri.yakc.api.WatchEvent<W>> watch() throws com.marcnuri.yakc.api.KubernetesException
-
stream
public java.util.stream.Stream<W> stream() throws java.io.IOException
-
exec
public io.reactivex.Observable<com.marcnuri.yakc.api.ExecMessage> exec()
- Specified by:
execin interfacecom.marcnuri.yakc.api.KubernetesExecCall<T>
-
exec
public okhttp3.WebSocket exec(okhttp3.WebSocketListener webSocketListener)
- Specified by:
execin interfacecom.marcnuri.yakc.api.KubernetesExecCall<T>
-
executeRaw
public okhttp3.Response executeRaw() throws java.io.IOException- Specified by:
executeRawin interfacecom.marcnuri.yakc.api.KubernetesCall<T>- Throws:
java.io.IOException
-
execute
public retrofit2.Response<T> execute() throws java.io.IOException
- Specified by:
executein interfaceretrofit2.Call<T>- Throws:
java.io.IOException
-
enqueue
public void enqueue(retrofit2.Callback<T> callback)
- Specified by:
enqueuein interfaceretrofit2.Call<T>
-
isExecuted
public boolean isExecuted()
- Specified by:
isExecutedin interfaceretrofit2.Call<T>
-
cancel
public void cancel()
- Specified by:
cancelin interfaceretrofit2.Call<T>
-
isCanceled
public boolean isCanceled()
- Specified by:
isCanceledin interfaceretrofit2.Call<T>
-
clone
public KubernetesHttpCall<T,W> clone()
- Specified by:
clonein interfaceretrofit2.Call<T>- Overrides:
clonein classjava.lang.Object
-
request
public okhttp3.Request request()
- Specified by:
requestin interfaceretrofit2.Call<T>
-
timeout
public okio.Timeout timeout()
- Specified by:
timeoutin interfaceretrofit2.Call<T>
-
-