public interface Service<S>
Modifier and Type | Method and Description |
---|---|
void |
initialize(S serviceManager)
Called when the service is first attached to the service
manager.
|
void |
start()
Called when the service manager is started or if the
service is added to an already started service manager.
|
void |
stop()
Called when the service manager is shutting down.
|
void |
terminate(S serviceManager)
The service manager is fully shutting down.
|
void initialize(S serviceManager)
void start()
void stop()
void terminate(S serviceManager)