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,
Executor executor)
Watch the Kubernetes resource with specified name and do the
FlinkKubeClient.WatchCallbackHandler . |
void close()
close
in interface AutoCloseable
KubernetesSharedWatcher.Watch watch(String name, FlinkKubeClient.WatchCallbackHandler<T> callbackHandler, @Nullable Executor executor)
FlinkKubeClient.WatchCallbackHandler
.name
- name to filter the resource to watchcallbackHandler
- callbackHandler which reacts to resource eventsexecutor
- to run callbackCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.