public abstract class ChildServiceSupport extends ServiceSupport
Services.shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
ChildServiceSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChildService(Object childService) |
protected boolean |
removeChildService(Object childService) |
void |
shutdown()
Important: You should override the lifecycle methods that start with do, eg
ServiceSupport.doStart(),
ServiceSupport.doStop(), etc. |
void |
start()
Important: You should override the lifecycle methods that start with do, eg
ServiceSupport.doStart(),
ServiceSupport.doStop(), etc. |
void |
start(boolean startChildren) |
void |
stop()
Important: You should override the lifecycle methods that start with do, eg
ServiceSupport.doStart(),
ServiceSupport.doStop(), etc. |
doResume, doShutdown, doStart, doStop, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, suspendpublic ChildServiceSupport()
public void start() throws Exception
ServiceSupportServiceSupport.doStart(),
ServiceSupport.doStop(), etc. where you implement your logic. The methods ServiceSupport.start(), ServiceSupport.stop() should
NOT be overriden as they are used internally to keep track of the state of this service and properly
invoke the operation in a safe manner.start in interface Servicestart in class ServiceSupportException - is thrown if starting failedpublic void stop() throws Exception
ServiceSupportServiceSupport.doStart(),
ServiceSupport.doStop(), etc. where you implement your logic. The methods ServiceSupport.start(), ServiceSupport.stop() should
NOT be overriden as they are used internally to keep track of the state of this service and properly
invoke the operation in a safe manner.stop in interface Servicestop in class ServiceSupportException - is thrown if stopping failedpublic void shutdown() throws Exception
ServiceSupportServiceSupport.doStart(),
ServiceSupport.doStop(), etc. where you implement your logic. The methods ServiceSupport.start(), ServiceSupport.stop() should
NOT be overriden as they are used internally to keep track of the state of this service and properly
invoke the operation in a safe manner.shutdown in interface ShutdownableServiceshutdown in class ServiceSupportException - thrown if shutting down failedprotected void addChildService(Object childService)
protected boolean removeChildService(Object childService)
Apache Camel