Package io.quarkus.deployment.builditem
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.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintinthashCode()static PreInitRunnableBuildIteminitializeClass(String className) static PreInitRunnableBuildIteminitializeClass(String className, int priority) static PreInitRunnableBuildItemstatic PreInitRunnableBuildItem
-
Field Details
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITY- See Also:
-
-
Method Details
-
runnable
-
runnable
-
initializeClass
-
initializeClass
-
getRunnableClassName
-
getParameter
-
getPriority
public int getPriority() -
compareTo
- Specified by:
compareToin interfaceComparable<PreInitRunnableBuildItem>
-
equals
-
hashCode
public int hashCode()
-