public interface ServiceControllerAction extends Action
isRunning()
method should always return the same
value on both of them and invoking start()
or stop()
on one
controller should be immediately visible on the second controller.Modifier and Type | Method and Description |
---|---|
boolean |
isRunning()
Is the service running or not?
|
void |
start()
Start the service if it is not already running.
|
void |
stop()
Stop the service if it is running.
|
boolean isRunning()
void start()
void stop()