Class WatcherToggle<T>
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.WatcherToggle<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.client.Watcher
Watcher.Action
-
-
Constructor Summary
Constructors Constructor Description WatcherToggle(Watcher<T> delegate, boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disable()
void
enable()
void
eventReceived(Watcher.Action action, T resource)
void
onClose()
Invoked when the watcher is gracefully closed.void
onClose(WatcherException cause)
Invoked when the watcher closes due to an Exception.
-
-
-
Method Detail
-
disable
public void disable()
-
enable
public void enable()
-
eventReceived
public void eventReceived(Watcher.Action action, T resource)
- Specified by:
eventReceived
in interfaceWatcher<T>
-
onClose
public void onClose(WatcherException cause)
Description copied from interface:Watcher
Invoked when the watcher closes due to an Exception.
-
-