Class WatchOnSubscribe<T>

  • All Implemented Interfaces:
    io.reactivex.disposables.Disposable, io.reactivex.ObservableOnSubscribe<com.marcnuri.yakc.api.WatchEvent<T>>

    public class WatchOnSubscribe<T>
    extends java.lang.Object
    implements io.reactivex.ObservableOnSubscribe<com.marcnuri.yakc.api.WatchEvent<T>>, io.reactivex.disposables.Disposable
    Created by Marc Nuri on 2020-04-13.
    • Constructor Summary

      Constructors 
      Constructor Description
      WatchOnSubscribe​(java.lang.reflect.Type responseType, okhttp3.Request request, KubernetesClient kubernetesClient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      boolean isDisposed()  
      void subscribe​(io.reactivex.ObservableEmitter<com.marcnuri.yakc.api.WatchEvent<T>> emitter)  
      • Methods inherited from class java.lang.Object

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

      • WatchOnSubscribe

        public WatchOnSubscribe​(java.lang.reflect.Type responseType,
                                okhttp3.Request request,
                                KubernetesClient kubernetesClient)
                         throws com.marcnuri.yakc.api.KubernetesException
        Throws:
        com.marcnuri.yakc.api.KubernetesException
    • Method Detail

      • subscribe

        public void subscribe​(io.reactivex.ObservableEmitter<com.marcnuri.yakc.api.WatchEvent<T>> emitter)
        Specified by:
        subscribe in interface io.reactivex.ObservableOnSubscribe<T>
      • dispose

        public void dispose()
        Specified by:
        dispose in interface io.reactivex.disposables.Disposable
      • isDisposed

        public boolean isDisposed()
        Specified by:
        isDisposed in interface io.reactivex.disposables.Disposable