public interface StatefulService extends SuspendableService, ShutdownableService
Service
which has all the lifecycle events and offers details about its current state.Modifier and Type | Method and Description |
---|---|
ServiceStatus |
getStatus()
Returns the current status
|
boolean |
isRunAllowed()
Helper methods so the service knows if it should keep running.
|
boolean |
isStarted()
Whether the service is started
|
boolean |
isStarting()
Whether the service is starting
|
boolean |
isStopped()
Whether the service is stopped
|
boolean |
isStopping()
Whether the service is stopping
|
boolean |
isSuspending()
Whether the service is suspending
|
isSuspended, resume, suspend
shutdown
ServiceStatus getStatus()
boolean isStarted()
boolean isStarting()
boolean isStopping()
boolean isStopped()
boolean isSuspending()
boolean isRunAllowed()
Apache Camel