public interface KubernetesSharedWatcher<T> extends AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
KubernetesSharedWatcher.Watch
The Watch returned after creating watching, which can be used to close the watching.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the shared watcher without Exception.
|
KubernetesSharedWatcher.Watch |
watch(String name,
FlinkKubeClient.WatchCallbackHandler<T> callbackHandler,
ExecutorService executorService)
Watch the Kubernetes resource with specified name and do the
FlinkKubeClient.WatchCallbackHandler. |
void close()
close in interface AutoCloseableKubernetesSharedWatcher.Watch watch(String name, FlinkKubeClient.WatchCallbackHandler<T> callbackHandler, @Nullable ExecutorService executorService)
FlinkKubeClient.WatchCallbackHandler.name - name to filter the resource to watchcallbackHandler - callbackHandler which reacts to resource eventsexecutorService - to run callbackCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.