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 TypeMethodDescriptionvoid
addStartupCondition
(org.apache.camel.spi.StartupCondition startupCondition) void
addStartupConditions
(String classNames) void
protected void
doCheckConditions
(List<org.apache.camel.spi.StartupCondition> conditions) org.apache.camel.CamelContext
int
List
<org.apache.camel.spi.StartupCondition> int
boolean
void
setCamelContext
(org.apache.camel.CamelContext camelContext) void
setEnabled
(boolean enabled) void
setInterval
(int interval) void
setOnTimeout
(String onTimeout) void
setTimeout
(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, suspend
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods 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:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
getInterval
public int getInterval()- Specified by:
getInterval
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
setInterval
public void setInterval(int interval) - Specified by:
setInterval
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
getTimeout
public int getTimeout()- Specified by:
getTimeout
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
setTimeout
public void setTimeout(int timeout) - Specified by:
setTimeout
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
getOnTimeout
- Specified by:
getOnTimeout
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
setOnTimeout
- Specified by:
setOnTimeout
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
addStartupCondition
public void addStartupCondition(org.apache.camel.spi.StartupCondition startupCondition) - Specified by:
addStartupCondition
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
addStartupConditions
- Specified by:
addStartupConditions
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
getStartupConditions
- Specified by:
getStartupConditions
in interfaceorg.apache.camel.spi.StartupConditionStrategy
-
checkStartupConditions
public void checkStartupConditions() throws org.apache.camel.VetoCamelContextStartException- Specified by:
checkStartupConditions
in 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
-