public class WatchHTTPManager<T extends HasMetadata,L extends KubernetesResourceList<T>> extends java.lang.Object implements Watch
Constructor and Description |
---|
WatchHTTPManager(okhttp3.OkHttpClient client,
BaseOperation<T,L,?,?> baseOperation,
java.lang.String version,
Watcher<T> watcher,
int reconnectInterval,
int reconnectLimit,
long connectTimeout) |
WatchHTTPManager(okhttp3.OkHttpClient client,
BaseOperation<T,L,?,?> baseOperation,
java.lang.String version,
Watcher<T> watcher,
int reconnectInterval,
int reconnectLimit,
long connectTimeout,
int maxIntervalExponent) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the Watch.
|
void |
onMessage(java.lang.String messageSource) |
protected static WatchEvent |
readWatchEvent(java.lang.String messageSource) |
public WatchHTTPManager(okhttp3.OkHttpClient client, BaseOperation<T,L,?,?> baseOperation, java.lang.String version, Watcher<T> watcher, int reconnectInterval, int reconnectLimit, long connectTimeout) throws java.net.MalformedURLException
java.net.MalformedURLException
public WatchHTTPManager(okhttp3.OkHttpClient client, BaseOperation<T,L,?,?> baseOperation, java.lang.String version, Watcher<T> watcher, int reconnectInterval, int reconnectLimit, long connectTimeout, int maxIntervalExponent) throws java.net.MalformedURLException
java.net.MalformedURLException
public void onMessage(java.lang.String messageSource) throws java.io.IOException
java.io.IOException
protected static WatchEvent readWatchEvent(java.lang.String messageSource) throws java.io.IOException
java.io.IOException
Copyright © 2015-2019 Red Hat. All Rights Reserved.