Class SnapStartConfig

java.lang.Object
io.quarkus.deployment.SnapStartConfig

@ConfigRoot(phase=BUILD_TIME, name="snapstart") public class SnapStartConfig extends Object
Configure the various optimization to use SnapStart
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) Optional<Boolean>
    Enable/Disable SnapStart integration
    (package private) boolean
    Start the full application during the snapshotting process.
    (package private) boolean
    When SnapStart is enabled, it generates the application class list, so it can be preloaded.
    (package private) boolean
    if preloading classes, specify whether to do static initialization when preloading these classes.
    (package private) boolean
    Will do a classpath search for all META-INF/quarkus-preload-classes.txt files These files contain fully qualified classnames that should be loaded in the SnapStart/CRaC beforeCheckpoint() phase.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • enable

      Enable/Disable SnapStart integration

      Default value is dependent on extensions deployed (i.e. when using AWS Lambda extensions, this will be set to true by default)

    • preloadClasses

      @ConfigItem(defaultValue="true") boolean preloadClasses
      Will do a classpath search for all META-INF/quarkus-preload-classes.txt files These files contain fully qualified classnames that should be loaded in the SnapStart/CRaC beforeCheckpoint() phase.
    • initializeClasses

      @ConfigItem(defaultValue="true") boolean initializeClasses
      if preloading classes, specify whether to do static initialization when preloading these classes.
    • fullWarmup

      @ConfigItem(defaultValue="true") boolean fullWarmup
      Start the full application during the snapshotting process. In other words, when enabled, it performs Application.start() within SnapStart/CRaC beforeCheckpoint() phase.
    • generateApplicationClassList

      @ConfigItem(defaultValue="true") boolean generateApplicationClassList
      When SnapStart is enabled, it generates the application class list, so it can be preloaded. Only used if preloadClasses is set to true.
  • Constructor Details

    • SnapStartConfig

      public SnapStartConfig()