public class ServiceListenerManager extends AbstractListenerManager<Service,ServiceListener>
ServiceListeners.| Constructor and Description |
|---|
ServiceListenerManager(Service service)
Creates a new listener manager for
ServiceListeners. |
| Modifier and Type | Method and Description |
|---|---|
void |
fireServiceStarted()
Notifies listeners that a
Service has been started. |
void |
fireServiceStateChanged(State oldState,
State newState)
|
void |
fireServiceStopped(Throwable cause)
Notifies listeners that a
Service has been stopped. |
addListener, getExecutor, getListeners, getSource, removeListenerpublic ServiceListenerManager(Service service)
ServiceListeners.service - The source servicepublic void fireServiceStarted()
Service has been started.public void fireServiceStateChanged(State oldState, State newState)
oldState - The old state of the servicenewState - The new state of the serviceCopyright © 2026. All rights reserved.