Class WatchHTTPManager<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>>
java.lang.Object
io.fabric8.kubernetes.client.dsl.internal.WatchHTTPManager<T,L>
- All Implemented Interfaces:
Watch,Closeable,AutoCloseable
public class WatchHTTPManager<T extends io.fabric8.kubernetes.api.model.HasMetadata,L extends io.fabric8.kubernetes.api.model.KubernetesResourceList<T>> extends Object implements Watch
-
Constructor Summary
Constructors Constructor Description WatchHTTPManager(okhttp3.OkHttpClient client, BaseOperation<T,L,?,?> baseOperation, io.fabric8.kubernetes.api.model.ListOptions listOptions, Watcher<T> watcher, int reconnectInterval, int reconnectLimit, long connectTimeout)WatchHTTPManager(okhttp3.OkHttpClient client, BaseOperation<T,L,?,?> baseOperation, io.fabric8.kubernetes.api.model.ListOptions listOptions, Watcher<T> watcher, int reconnectInterval, int reconnectLimit, long connectTimeout, int maxIntervalExponent) -
Method Summary
Modifier and Type Method Description voidclose()Close the Watch.voidonMessage(String messageSource)protected static io.fabric8.kubernetes.api.model.WatchEventreadWatchEvent(String messageSource)
-
Constructor Details
-
WatchHTTPManager
public WatchHTTPManager(okhttp3.OkHttpClient client, BaseOperation<T,L,?,?> baseOperation, io.fabric8.kubernetes.api.model.ListOptions listOptions, Watcher<T> watcher, int reconnectInterval, int reconnectLimit, long connectTimeout) throws MalformedURLException- Throws:
MalformedURLException
-
WatchHTTPManager
public WatchHTTPManager(okhttp3.OkHttpClient client, BaseOperation<T,L,?,?> baseOperation, io.fabric8.kubernetes.api.model.ListOptions listOptions, Watcher<T> watcher, int reconnectInterval, int reconnectLimit, long connectTimeout, int maxIntervalExponent) throws MalformedURLException- Throws:
MalformedURLException
-
-
Method Details
-
onMessage
- Throws:
IOException
-
readWatchEvent
protected static io.fabric8.kubernetes.api.model.WatchEvent readWatchEvent(String messageSource) throws IOException- Throws:
IOException
-
close
public void close()Description copied from interface:WatchClose the Watch.
-