Watcher.Action| Constructor and Description |
|---|
WatcherToggle(Watcher<T> delegate,
boolean enabled) |
| Modifier and Type | Method and 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.
|
boolean |
reconnecting()
If the Watcher can reconnect itself after an error
|
public void disable()
public void enable()
public void eventReceived(Watcher.Action action, T resource)
eventReceived in interface Watcher<T>public void onClose(WatcherException cause)
Watcherpublic void onClose()
Watcherpublic boolean reconnecting()
Watcherreconnecting in interface Watcher<T>Copyright © 2015–2022 Red Hat. All rights reserved.