Class PreInitRunnableBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.PreInitRunnableBuildItem
All Implemented Interfaces:
Comparable<PreInitRunnableBuildItem>

public final class PreInitRunnableBuildItem extends io.quarkus.builder.item.MultiBuildItem implements Comparable<PreInitRunnableBuildItem>
A build item that can be used to register pre-init tasks that will be executed early in GeneratedMain.

For now, these tasks are only executed when using the AOT runner.

Pre-init is run at the very beginning of the GeneratedMain, and all tasks are submitted to a thread pool that will execute the tasks in parallel so don't expect any execution ordering.

The tasks are submitted to the thread pool in the priority order: a lower value for priority will be submitted first.