Class StartupConditionConfigurationProperties

java.lang.Object
org.apache.camel.main.StartupConditionConfigurationProperties
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.camel.spi.BootstrapCloseable

@Configurer(extended=true) public class StartupConditionConfigurationProperties extends Object implements org.apache.camel.spi.BootstrapCloseable
Configuration for startup conditions
  • Constructor Details

  • Method Details

    • end

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
      To enable using startup conditions
    • getInterval

      public int getInterval()
    • setInterval

      public void setInterval(int interval)
      Interval in millis between checking conditions.
    • getTimeout

      public int getTimeout()
    • setTimeout

      public void setTimeout(int timeout)
      Total timeout (in millis) for all startup conditions.
    • getOnTimeout

      public String getOnTimeout()
    • setOnTimeout

      public void setOnTimeout(String onTimeout)
      What action, to do on timeout. fail = do not startup, and throw an exception causing camel to fail stop = do not startup, and stop camel ignore = log a WARN and continue to startup
    • getEnvironmentVariableExists

      public String getEnvironmentVariableExists()
    • setEnvironmentVariableExists

      public void setEnvironmentVariableExists(String environmentVariableExists)
      Wait for an environment variable with the given name to exists before continuing
    • getFileExists

      public String getFileExists()
    • setFileExists

      public void setFileExists(String fileExists)
      Wait for a file with the given name to exists before continuing
    • getCustomClassNames

      public String getCustomClassNames()
    • setCustomClassNames

      public void setCustomClassNames(String customClassNames)
      A list of custom class names (FQN). Multiple classes can be separated by comma.
    • withEnabled

      public StartupConditionConfigurationProperties withEnabled(boolean enabled)
      To enable using startup conditions
    • withInterval

      public StartupConditionConfigurationProperties withInterval(int interval)
      Interval in millis between checking startup conditions
    • withTimeout

      public StartupConditionConfigurationProperties withTimeout(int timeout)
      Total timeout (in millis) for all startup conditions.
    • withOnTimeout

      public StartupConditionConfigurationProperties withOnTimeout(String onTimeout)
      What action, to do on timeout. fail = do not startup, and throw an exception causing camel to fail stop = do not startup, and stop camel ignore = log a WARN and continue to startup
    • withEnvironmentVariableExists

      public StartupConditionConfigurationProperties withEnvironmentVariableExists(String environmentVariableExists)
      Wait for an environment variable with the given name to exists before continuing
    • withFileExists

      public StartupConditionConfigurationProperties withFileExists(String fileExists)
      Wait for a file with the given name to exists before continuing
    • withCustomClassNames

      public StartupConditionConfigurationProperties withCustomClassNames(String customClassNames)
      A list of custom class names (FQN). Multiple classes can be separated by comma.