Class 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
      void cancel()  
      KubernetesHttpCall<T,​W> clone()  
      void enqueue​(retrofit2.Callback<T> callback)  
      io.reactivex.Observable<com.marcnuri.yakc.api.ExecMessage> exec()  
      okhttp3.WebSocket exec​(okhttp3.WebSocketListener webSocketListener)  
      retrofit2.Response<T> execute()  
      okhttp3.Response executeRaw()  
      T get()  
      <O> O get​(java.lang.Class<O> returnType)  
      boolean isCanceled()  
      boolean isExecuted()  
      okhttp3.Request request()  
      java.util.stream.Stream<W> stream()  
      okio.Timeout timeout()  
      io.reactivex.Observable<com.marcnuri.yakc.api.WatchEvent<W>> watch()  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public T get()
              throws java.io.IOException
        Specified by:
        get in interface com.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:
        get in interface com.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
        Specified by:
        watch in interface com.marcnuri.yakc.api.KubernetesListCall<T,​W>
        Throws:
        com.marcnuri.yakc.api.KubernetesException
      • stream

        public java.util.stream.Stream<W> stream()
                                          throws java.io.IOException
        Specified by:
        stream in interface com.marcnuri.yakc.api.KubernetesListCall<T,​W>
        Throws:
        java.io.IOException
      • exec

        public io.reactivex.Observable<com.marcnuri.yakc.api.ExecMessage> exec()
        Specified by:
        exec in interface com.marcnuri.yakc.api.KubernetesExecCall<T>
      • exec

        public okhttp3.WebSocket exec​(okhttp3.WebSocketListener webSocketListener)
        Specified by:
        exec in interface com.marcnuri.yakc.api.KubernetesExecCall<T>
      • executeRaw

        public okhttp3.Response executeRaw()
                                    throws java.io.IOException
        Specified by:
        executeRaw in interface com.marcnuri.yakc.api.KubernetesCall<T>
        Throws:
        java.io.IOException
      • execute

        public retrofit2.Response<T> execute()
                                      throws java.io.IOException
        Specified by:
        execute in interface retrofit2.Call<T>
        Throws:
        java.io.IOException
      • enqueue

        public void enqueue​(retrofit2.Callback<T> callback)
        Specified by:
        enqueue in interface retrofit2.Call<T>
      • isExecuted

        public boolean isExecuted()
        Specified by:
        isExecuted in interface retrofit2.Call<T>
      • cancel

        public void cancel()
        Specified by:
        cancel in interface retrofit2.Call<T>
      • isCanceled

        public boolean isCanceled()
        Specified by:
        isCanceled in interface retrofit2.Call<T>
      • clone

        public KubernetesHttpCall<T,​W> clone()
        Specified by:
        clone in interface retrofit2.Call<T>
        Overrides:
        clone in class java.lang.Object
      • request

        public okhttp3.Request request()
        Specified by:
        request in interface retrofit2.Call<T>
      • timeout

        public okio.Timeout timeout()
        Specified by:
        timeout in interface retrofit2.Call<T>