Class ServiceManager.Listener
java.lang.Object
com.google.common.util.concurrent.ServiceManager.Listener
- Enclosing class:
ServiceManager
@Beta
@Deprecated(since="2022-12-01")
public abstract static class ServiceManager.Listener
extends Object
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
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.- Since:
- 15.0 (present as an interface in 14.0)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Called when a component service has failed.voidhealthy()Deprecated.Called when the service initially becomes healthy.voidstopped()Deprecated.Called when the all of the component services have reached a terminal state, either terminated or failed.
-
Constructor Details
-
Listener
public Listener()Deprecated.
-
-
Method Details
-
healthy
public void healthy()Deprecated. -
stopped
public void stopped()Deprecated.Called when the all of the component services have reached a terminal state, either terminated or failed. -
failure
Deprecated.Called when a component service has failed.- Parameters:
service- The service that failed.
-