public interface HostHealthMonitor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HostHealthMonitor.Handler
Provides an interface for handling changes detected by
HostHealthMonitor |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addHandler(HostHealthMonitor.Handler handler)
Registers the specified `handler` to be invoked each time the health of the host changes
|
HostHealthState |
hostHealthState()
Queries the current health of the host
|
boolean |
removeHandler(HostHealthMonitor.Handler handler)
Unregisters the specified `handler'
|
boolean addHandler(HostHealthMonitor.Handler handler)
handler - Handler object to be registeredhandler was successfully added, false if specified handler was added beforeNullPointerException - if specified handler is nullboolean removeHandler(HostHealthMonitor.Handler handler)
handler - Handler object to be removedhandler was successfully removed, false if there were no
such object to removeNullPointerException - if specified handler is nullHostHealthState hostHealthState()
Copyright © 2023 Bloomberg L.P.. All rights reserved.