Package org.apache.camel.support.startup
Class DefaultStartupConditionStrategy
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.startup.DefaultStartupConditionStrategy
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.StartupConditionStrategy,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
@DeferredContextBinding
public class DefaultStartupConditionStrategy
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.StartupConditionStrategy, org.apache.camel.CamelContextAware
Default
StartupConditionStrategy.-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStartupCondition(org.apache.camel.spi.StartupCondition startupCondition) voidaddStartupConditions(String classNames) voidprotected voiddoCheckConditions(List<org.apache.camel.spi.StartupCondition> conditions) org.apache.camel.CamelContextintList<org.apache.camel.spi.StartupCondition> intbooleanvoidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetEnabled(boolean enabled) voidsetInterval(int interval) voidsetOnTimeout(String onTimeout) voidsetTimeout(int timeout) Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
DefaultStartupConditionStrategy
public DefaultStartupConditionStrategy()
-
-
Method Details
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
getInterval
public int getInterval()- Specified by:
getIntervalin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
setInterval
public void setInterval(int interval) - Specified by:
setIntervalin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
getTimeout
public int getTimeout()- Specified by:
getTimeoutin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
setTimeout
public void setTimeout(int timeout) - Specified by:
setTimeoutin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
getOnTimeout
- Specified by:
getOnTimeoutin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
setOnTimeout
- Specified by:
setOnTimeoutin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
addStartupCondition
public void addStartupCondition(org.apache.camel.spi.StartupCondition startupCondition) - Specified by:
addStartupConditionin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
addStartupConditions
- Specified by:
addStartupConditionsin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
getStartupConditions
- Specified by:
getStartupConditionsin interfaceorg.apache.camel.spi.StartupConditionStrategy
-
checkStartupConditions
public void checkStartupConditions() throws org.apache.camel.VetoCamelContextStartException- Specified by:
checkStartupConditionsin interfaceorg.apache.camel.spi.StartupConditionStrategy- Throws:
org.apache.camel.VetoCamelContextStartException
-
doCheckConditions
protected void doCheckConditions(List<org.apache.camel.spi.StartupCondition> conditions) throws org.apache.camel.VetoCamelContextStartException - Throws:
org.apache.camel.VetoCamelContextStartException
-