Class QApplicationLauncherConfig
java.lang.Object
com.kingsrook.qqq.middleware.javalin.QApplicationLauncherConfig
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for failOnMetaDataProducerErrorGetter for registerShutdownHookGetter for serverCustomizerGetter for systemUserSessionSuppliervoidsetFailOnMetaDataProducerError(Boolean failOnMetaDataProducerError) Setter for failOnMetaDataProducerErrorvoidsetRegisterShutdownHook(Boolean registerShutdownHook) Setter for registerShutdownHookvoidsetServerCustomizer(Consumer<QApplicationJavalinServer> serverCustomizer) Setter for serverCustomizervoidsetSystemUserSessionSupplier(Supplier<QSession> systemUserSessionSupplier) Setter for systemUserSessionSupplierwithFailOnMetaDataProducerError(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.withRegisterShutdownHook(Boolean registerShutdownHook) Fluent setter for registerShutdownHook - if true, a JVM shutdown hook stops everything the launcher started.withServerCustomizer(Consumer<QApplicationJavalinServer> serverCustomizer) Fluent setter for serverCustomizer - called with the server before it starts.withSystemUserSessionSupplier(Supplier<QSession> systemUserSessionSupplier) Fluent setter for systemUserSessionSupplier - the session scheduled jobs run as.
-
Constructor Details
-
QApplicationLauncherConfig
public QApplicationLauncherConfig()
-
-
Method Details
-
getServerCustomizer
Getter for serverCustomizer -
setServerCustomizer
Setter for serverCustomizer -
withServerCustomizer
public QApplicationLauncherConfig withServerCustomizer(Consumer<QApplicationJavalinServer> serverCustomizer) Fluent setter for serverCustomizer - called with the server before it starts. -
getFailOnMetaDataProducerError
Getter for failOnMetaDataProducerError -
setFailOnMetaDataProducerError
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
-
setSystemUserSessionSupplier
-
withSystemUserSessionSupplier
public QApplicationLauncherConfig withSystemUserSessionSupplier(Supplier<QSession> systemUserSessionSupplier) Fluent setter for systemUserSessionSupplier - the session scheduled jobs run as. -
getRegisterShutdownHook
Getter for registerShutdownHook -
setRegisterShutdownHook
Setter for registerShutdownHook -
withRegisterShutdownHook
Fluent setter for registerShutdownHook - if true, a JVM shutdown hook stops everything the launcher started.
-