- awaitRunning
Waits for the Service to reach the State#RUNNING for no more than the given
time.
- awaitTerminated
Waits for the Service to reach a terminal state (either Service.State#TERMINATED
or Service.State#FA
- stopAsync
If the service is State#STARTING or State#RUNNING, this initiates service
shutdown and returns immed
- stopAndWait
Initiates service shutdown (if necessary), returning once the service has
finished stopping. If this
- addListener
Registers a Listener to be Executor#execute on the given executor. The listener
will have the corres
- startAsync
If the service state is State#NEW, this initiates service startup and returns
immediately. A stopped
- failureCause
Returns the Throwable that caused this service to fail.
- isRunning
Returns true if this service is State#RUNNING.
- startAndWait
Initiates service startup (if necessary), returning once the service has
finished starting. Unlike c
- state
Returns the lifecycle state of the service.
- start
If the service state is State#NEW, this initiates service startup and returns
immediately. If the se
- stop
If the service is State#STARTING or State#RUNNING, this initiates service
shutdown and returns immed