@Beta public abstract static class ServiceManager.Listener extends Object
A listener for the aggregate state changes of the services that are under management. Users that need to listen to more fine-grained events (such as when each particular service starts, or terminates), should attach service listeners to each individual service.
| Constructor and Description |
|---|
Listener() |
| Modifier and Type | Method and Description |
|---|---|
void |
failure(Service service)
Called when a component service has failed.
|
void |
healthy()
Called when the service initially becomes healthy.
|
void |
stopped()
Called when the all of the component services have reached a terminal state, either terminated or failed.
|
public void healthy()
public void stopped()
Called when the all of the component services have reached a terminal state, either terminated or failed.