Class QApplicationLauncherConfig

java.lang.Object
com.kingsrook.qqq.middleware.javalin.QApplicationLauncherConfig

public class QApplicationLauncherConfig extends Object
Settings for QApplicationLauncher: - serverCustomizer: configures the QApplicationJavalinServer before it starts (port, dashboards, route providers, etc). - failOnMetaDataProducerError: make a producer that fails stop the launch (needs an AbstractMetaDataProducerBasedQQQApplication). Default false. - systemUserSessionSupplier: session the QScheduleManager runs as. Default a QSystemUserSession. - registerShutdownHook: stop everything when the JVM exits. Default true.
  • Constructor Details

    • QApplicationLauncherConfig

      public QApplicationLauncherConfig()
  • Method Details

    • getServerCustomizer

      public Consumer<QApplicationJavalinServer> getServerCustomizer()
      Getter for serverCustomizer
    • setServerCustomizer

      public void setServerCustomizer(Consumer<QApplicationJavalinServer> serverCustomizer)
      Setter for serverCustomizer
    • withServerCustomizer

      public QApplicationLauncherConfig withServerCustomizer(Consumer<QApplicationJavalinServer> serverCustomizer)
      Fluent setter for serverCustomizer - called with the server before it starts.
    • getFailOnMetaDataProducerError

      public Boolean getFailOnMetaDataProducerError()
      Getter for failOnMetaDataProducerError
    • setFailOnMetaDataProducerError

      public void setFailOnMetaDataProducerError(Boolean failOnMetaDataProducerError)
      Setter for failOnMetaDataProducerError
    • withFailOnMetaDataProducerError

      public QApplicationLauncherConfig withFailOnMetaDataProducerError(Boolean failOnMetaDataProducerError)
      Fluent setter for failOnMetaDataProducerError - if true, a meta-data producer that can't be used or fails stops the launch, instead of being logged as a warning and skipped.
    • getSystemUserSessionSupplier

      public Supplier<QSession> getSystemUserSessionSupplier()
      Getter for systemUserSessionSupplier
    • setSystemUserSessionSupplier

      public void setSystemUserSessionSupplier(Supplier<QSession> systemUserSessionSupplier)
      Setter for systemUserSessionSupplier
    • withSystemUserSessionSupplier

      public QApplicationLauncherConfig withSystemUserSessionSupplier(Supplier<QSession> systemUserSessionSupplier)
      Fluent setter for systemUserSessionSupplier - the session scheduled jobs run as.
    • getRegisterShutdownHook

      public Boolean getRegisterShutdownHook()
      Getter for registerShutdownHook
    • setRegisterShutdownHook

      public void setRegisterShutdownHook(Boolean registerShutdownHook)
      Setter for registerShutdownHook
    • withRegisterShutdownHook

      public QApplicationLauncherConfig withRegisterShutdownHook(Boolean registerShutdownHook)
      Fluent setter for registerShutdownHook - if true, a JVM shutdown hook stops everything the launcher started.