public interface Watcher<T>
Modifier and Type | Interface and Description |
---|---|
static class |
Watcher.Action |
Modifier and Type | Method and Description |
---|---|
void |
eventReceived(Watcher.Action action,
T resource) |
default void |
onClose()
Invoked when the watcher is gracefully closed.
|
void |
onClose(WatcherException cause)
Invoked when the watcher closes due to an Exception.
|
default boolean |
reconnecting()
If the Watcher can reconnect itself after an error
|
default boolean reconnecting()
void eventReceived(Watcher.Action action, T resource)
default void onClose()
void onClose(WatcherException cause)
cause
- What caused the watcher to be closed.Copyright © 2015–2020 Red Hat. All rights reserved.