# ⬢ runtime-kit 1.0 Every page: [llms.txt](llms.txt), or all in one file: [llms-full.txt](llms-full.txt) Plan a Java application for the JVM or a native executable. Runtime Kit separates the configuration of an application from the tool that prepares it. An immutable [`BuildPlan`](example/runtime/BuildPlan.md) holds the entry point and compiler arguments. A [`Planner.Local`](example/runtime/Planner.Local.md) validates the plan for the chosen [`Target`](example/runtime/Target.md). Start with the preparation guide for a runnable example, or explore the package reference for constructors, extension points, and error handling. ## Guides - [Write a preparation step](guides/custom-step.md): Use the generic extension point to derive a launch command. - [Feature tour](guides/feature-tour.md): Follow the Runtime Kit sample from its API contracts through the build artifacts and generated documentation formats. - [Prepare your first build](guides/prepare-a-build.md): Create an immutable plan, select a runtime, and handle validation errors. ## Build information - [Native Image](build-info/native-image.md) - [JVM artifacts](build-info/jvm-artifacts.md) - [Attachments](build-info/attachments.md) ## Packages - [`example.runtime`](example/runtime/index.md): Plans Java applications for a local JVM or native executable. ## Types in `example.runtime` - [`BuildPlan`](example/runtime/BuildPlan.md) (record): Describes how to build a Java application as a native executable. - [`BuildStep`](example/runtime/BuildStep.md) (interface): A named phase in the preparation of a BuildPlan. - [`Experimental`](example/runtime/Experimental.md) (annotation interface): Marks a runtime API whose contract may evolve before the next release. - [`HotPath`](example/runtime/HotPath.md) (annotation interface): Marks operations used during plan lookup. - [`PlanCatalog`](example/runtime/PlanCatalog.md) (class): Looks up immutable build plans by name. - [`PlanException`](example/runtime/PlanException.md) (exception): Indicates that a BuildPlan cannot be prepared. - [`Planner`](example/runtime/Planner.md) (sealed abstract class): Validates a BuildPlan before handing it to a BuildStep. - [`Planner.Local`](example/runtime/Planner.Local.md) (class): Prepares builds against a locally installed toolchain. - [`Planner.Options`](example/runtime/Planner.Options.md) (record): Configuration for Local, including how to report progress. - [`Planner.Options.Detail`](example/runtime/Planner.Options.Detail.md) (enum class): Controls progress while preparing a plan. - [`Target`](example/runtime/Target.md) (enum class): Selects the runtime that will consume a BuildPlan. # ¶ Write a preparation step [runtime-kit](index.md) › Guides · Every page: [llms.txt](llms.txt) *Use the generic extension point to derive a launch command.* ## Choose the output type [`BuildStep`](example/runtime/BuildStep.md) describes the result of preparation. A step can return a command line, a manifest, or another build plan. ```java BuildStep> launch = p -> List.of("java", p.mainClass()); ``` ## Apply the step Pass a validated [`BuildPlan`](example/runtime/BuildPlan.md) to the step. The result contains the command and its argument as separate entries. ```java var command = launch.prepare(BuildPlan.defaults("example.Main")); ``` --- Next: [Feature tour](guides/feature-tour.md) # ¶ Feature tour [runtime-kit](index.md) › Guides · Every page: [llms.txt](llms.txt) *Follow the Runtime Kit sample from its API contracts through the build artifacts and generated documentation formats.* ## API contracts - [PlanCatalog](example/runtime/PlanCatalog.md) shows a thread-safety badge, a package-wide nullness default, a custom hot-path annotation, and a linked snippet. - [find](example/runtime/PlanCatalog.md#find%28java.lang.String%29) has an implied non-null input and an explicitly nullable result. Its Markdown Javadoc includes an API note, implementation requirements, and implementation notes. - [names](example/runtime/PlanCatalog.md#names%28%29) shows an explicit qualifier inside a generic type. [lookup](example/runtime/PlanCatalog.md#lookup%28java.lang.String%29) opts out of the package default and is deprecated for removal. - [BuildPlan](example/runtime/BuildPlan.md), [Planner](example/runtime/Planner.md), [BuildStep](example/runtime/BuildStep.md), [Target](example/runtime/Target.md), [HotPath](example/runtime/HotPath.md), and [PlanException](example/runtime/PlanException.md) exercise records, sealed types, generic interfaces, enums, annotations, and checked exceptions. ## Build information - [Native Image](build-info/native-image.html) shows reachability registrations sourced from the JAR and the Oracle GraalVM report in a sandboxed preview. - [JVM artifacts](build-info/jvm-artifacts.html) maps API types to a modular multi-release JAR, a JMOD, and a class directory. Follow a type's artifact badges to compare its Java 17 and 21 bytecode entries. - [Attachments](build-info/attachments.html) contains the generated CycloneDX SBOM, the full Native Image report, a JAR manifest, and example JUnit, JaCoCo, and ProGuard mapping reports. ## Read and query the reference - Use the navigator, search, type hover cards, and member signatures in HTML. [The alphabetical index](index-all.html) and [deprecated API index](deprecated.html) provide alternate entry points. - Read the [Markdown reference](example/runtime/PlanCatalog.md), download the [API model](api.json), or query [declaration contracts](contracts.ndjson). The [llms.txt index](llms.txt) points to the other Markdown pages. - See the [shared Java and Kotlin handbook](https://elide-dev.github.io/doclet/catalog/latest/guides/handbook/guides/runtime-greetings.html) for the Dokka frontend, Kotlin signatures, and cross-module links. --- Previous: [Write a preparation step](guides/custom-step.md) Next: [Prepare your first build](guides/prepare-a-build.md) # ¶ Prepare your first build [runtime-kit](index.md) › Guides · Every page: [llms.txt](llms.txt) *Create an immutable plan, select a runtime, and handle validation errors.* ## Choose an entry point Use [`BuildPlan.defaults(String)`](example/runtime/BuildPlan.md#defaults%28java.lang.String%29) for a plan with no extra compiler flags. The entry point is the fully qualified class name. ```java var plan = BuildPlan.defaults("example.Main"); ``` ## Select the runtime Construct a [`Planner.Local`](example/runtime/Planner.Local.md) for the JVM. For fine-grained progress reporting, pass [`Planner.Options`](example/runtime/Planner.Options.md) to the overloaded constructor. ```java var planner = new Planner.Local(Target.JVM); ``` ## Validate the plan Preparation returns the validated plan. A blank entry point raises [`PlanException`](example/runtime/PlanException.md) before execution. ```java try { var ready = planner.prepare(plan); System.out.println(ready.mainClass()); } catch (PlanException rejected) { System.err.println(rejected.getMessage()); } ``` --- Previous: [Feature tour](guides/feature-tour.md) # Native Image ## Build reports - Native Image report — [runtime-kit-build-report.html (ZIP)](build-info/downloads/attachment-1.zip) · [Open full report](build-info/previews/report-1.html) ## ` META-INF/native-image/example/runtime-kit/native-image.properties ` From [` runtime-kit.jar `](build-info/jvm-artifacts.html#artifact-1) - ` Args ` — ` -H:+ReportExceptionStackTraces ` ## ` META-INF/native-image/example/runtime-kit/reachability-metadata.json ` From [` runtime-kit.jar `](build-info/jvm-artifacts.html#artifact-1) ### Reflection (1) - [` example.runtime.BuildPlan `](example/runtime/BuildPlan.md) — ` { "condition": { "typeReached": "example.runtime.PlanCatalog" }, "methods": [ { "name": "mainClass", "parameterTypes": [] } ] } ` ### Resources (1) - ` example/runtime/*.properties ` # JVM artifacts ## ` runtime-kit.jar ` ### Native Image - [` META-INF/native-image/example/runtime-kit/native-image.properties `](build-info/native-image.html#native-source-0) - [` META-INF/native-image/example/runtime-kit/reachability-metadata.json `](build-info/native-image.html#native-source-1) ### JPMS - ` example.runtime@1.0 ` - Main class — ` example.runtime.RuntimeKitMain ` - requires — ` mandated java.base (@17) ` - exports — ` example.runtime ` ### Multi-release JAR Multi-Release: true - ` META-INF/versions/21/ ` ## ` runtime-kit.jmod ` ### JPMS - ` example.runtime@1.0 ` - requires — ` mandated java.base (@17) ` - exports — ` example.runtime ` ## ` classes-21 (classes) ` ### JPMS - ` example.runtime ` - requires — ` mandated java.base (@21) ` - exports — ` example.runtime ` # Attachments - Native Image report — [runtime-kit-build-report.html (ZIP)](build-info/downloads/attachment-1.zip) - SBOM — [runtime-kit.sbom.cdx.json (ZIP)](build-info/downloads/attachment-2.zip) - JUnit XML — [junit.xml (ZIP)](build-info/downloads/attachment-3.zip) (Errors 0, Failures 0, Skipped 0, Tests 2) - Coverage — [jacoco.xml (ZIP)](build-info/downloads/attachment-4.zip) (Branches covered 3 / 4, Instructions covered 26 / 28, Lines covered 10 / 11) - Mapping — [mapping.txt (ZIP)](build-info/downloads/attachment-5.zip) - Manifest — [MANIFEST.MF (ZIP)](build-info/downloads/attachment-6.zip) # ▣ example.runtime [runtime-kit](index.md) · Every page: [llms.txt](llms.txt) Package in runtime-kit. Since 1.0. Reference types generally default to non-null in this null-marked scope. ```java @NullMarked ``` Annotation contracts include null-marked. Plans Java applications for a local JVM or native executable. ### Preparing a build Start with [`example.runtime.BuildPlan.defaults(String)`](example/runtime/BuildPlan.md#defaults%28java.lang.String%29), select a [`example.runtime.Target`](example/runtime/Target.md), and pass the plan to [`example.runtime.Planner.Local`](example/runtime/Planner.Local.md). Preparation validates configuration before a compiler is invoked. ### Extending a build Implement [`example.runtime.BuildStep`](example/runtime/BuildStep.md) to transform a plan into another artifact. Report invalid input with [`example.runtime.PlanException`](example/runtime/PlanException.md). ## Interfaces - [`BuildStep`](example/runtime/BuildStep.md): A named phase in the preparation of a BuildPlan. ## Classes - [`PlanCatalog`](example/runtime/PlanCatalog.md): Looks up immutable build plans by name. - [`Planner`](example/runtime/Planner.md): Validates a BuildPlan before handing it to a BuildStep. ## Records - [`BuildPlan`](example/runtime/BuildPlan.md): Describes how to build a Java application as a native executable. ## Enums - [`Target`](example/runtime/Target.md): Selects the runtime that will consume a BuildPlan. ## Exceptions - [`PlanException`](example/runtime/PlanException.md): Indicates that a BuildPlan cannot be prepared. ## Annotations - [`Experimental`](example/runtime/Experimental.md): Marks a runtime API whose contract may evolve before the next release. - [`HotPath`](example/runtime/HotPath.md): Marks operations used during plan lookup. # ▤ BuildPlan [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Record in [`example.runtime`](example/runtime/index.md). Since 1.0. Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java public record BuildPlan(String mainClass, List arguments) ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Record`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Record.html) > `BuildPlan` Describes how to build a Java application as a native executable. Pass this plan to a [`Planner.Local`](example/runtime/Planner.Local.md) for validation against a [`Target`](example/runtime/Target.md). For example: ```java var plan = new BuildPlan("example.Main", List.of("-O2")); ``` **Record components** - `mainClass` [`String`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html) (non-null, implied by @NullMarked on package example.runtime): the fully qualified entry point - `arguments` [`List`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/List.html)`<`[`String`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html)`>` (non-null, implied by @NullMarked on package example.runtime): compiler arguments in invocation order **See also** - [Write a preparation step](guides/custom-step.md) - [Feature tour](guides/feature-tour.md) - [Prepare your first build](guides/prepare-a-build.md) ## Constructors ### BuildPlan(String, List) `public BuildPlan(String mainClass, List arguments)`. Creates a plan with a stable copy of the arguments. Cite: `example/runtime/BuildPlan.html#(java.lang.String,java.util.List)` Parameters: `mainClass` `String` (non-null, implied by @NullMarked on package example.runtime): the fully qualified entry point. `arguments` `List` (non-null, implied by @NullMarked on package example.runtime): compiler arguments in invocation order. ## Methods ### defaults(String) `public static BuildPlan defaults(String mainClass)`. Returns a plan for the entry point using default compiler settings. Cite: `example/runtime/BuildPlan.html#defaults(java.lang.String)` Parameters: `mainClass` `String` (non-null, implied by @NullMarked on package example.runtime): the fully qualified entry point. Returns `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): a plan with an empty argument list. ### toString() `public final String toString()`. Returns a string containing the record class name and its component names and values. Cite: `example/runtime/BuildPlan.html#toString()` Returns `String` (non-null, implied by @NullMarked on package example.runtime): Returns a string containing the record class name and its component names and values. Overrides `toString()`. ### hashCode() `public final int hashCode()`. Returns a hash code computed from the record components. Cite: `example/runtime/BuildPlan.html#hashCode()` Returns `int`: Returns a hash code computed from the record components. Overrides `hashCode()`. ### equals(Object) `public final boolean equals(Object o)`. Returns whether the other object is a record of the same class with equal components. Cite: `example/runtime/BuildPlan.html#equals(java.lang.Object)` Parameters: `o` `Object` (nullable, implied by JSpecify’s rule for record equals(Object)): The object to compare with this record. Returns `boolean`: Returns whether the other object is a record of the same class with equal components. Overrides `equals(java.lang.Object)`. ### mainClass() `public String mainClass()`. the fully qualified entry point. Cite: `example/runtime/BuildPlan.html#mainClass()` Returns `String` (non-null, implied by @NullMarked on package example.runtime): the fully qualified entry point. ### arguments() `public List arguments()`. compiler arguments in invocation order. Cite: `example/runtime/BuildPlan.html#arguments()` Returns `List` (non-null, implied by @NullMarked on package example.runtime): compiler arguments in invocation order. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◇ BuildStep [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Interface in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java @FunctionalInterface public interface BuildStep ``` A named phase in the preparation of a [`BuildPlan`](example/runtime/BuildPlan.md). **Type parameters** - ``: the artifact produced by the step **See also** - [Write a preparation step](guides/custom-step.md) - [Feature tour](guides/feature-tour.md) ## Methods ### prepare(BuildPlan) `T prepare(BuildPlan plan) throws PlanException`. Prepares an artifact without executing the application. Cite: `example/runtime/BuildStep.html#prepare(example.runtime.BuildPlan)` Parameters: `plan` `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): the input configuration. Returns `T` (non-null, implied by the non-null bound of T (@NullMarked on package example.runtime)): the prepared artifact. Throws: `PlanException`: if the configuration cannot be prepared. # @ Experimental [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Annotation interface in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java @Documented @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE, ElementType.METHOD}) public @interface Experimental ``` Marks a runtime API whose contract may evolve before the next release. ## Elements ### since() `String since() default "1.0"`. The version in which the experiment began. Cite: `example/runtime/Experimental.html#since()` Returns `String` (non-null, implied by Java’s rules for annotation elements). Default: `"1.0"`. # @ HotPath [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Annotation interface in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java @Retention(RetentionPolicy.CLASS) @Target({ElementType.METHOD}) public @interface HotPath ``` Marks operations used during plan lookup. **See also** - [Feature tour](guides/feature-tour.md) # ◆ PlanCatalog [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Class in [`example.runtime`](example/runtime/index.md). Since 1.0. Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. Annotation contracts include safe for concurrent use. ```java @ThreadSafe public final class PlanCatalog ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > `PlanCatalog` Looks up immutable build plans by name. ```java var catalog = new PlanCatalog(Map.of("app", BuildPlan.defaults("example.Main"))); var plan = catalog.find("app"); ``` **See also** - [`BuildPlan`](example/runtime/BuildPlan.md) - [Feature tour](guides/feature-tour.md) ## Fields ### FORMAT_VERSION `public static final int FORMAT_VERSION`. The catalog format version. Cite: `example/runtime/PlanCatalog.html#FORMAT_VERSION` Constant value: `1`. ## Constructors ### PlanCatalog(Map) `public PlanCatalog(Map plans)`. Creates a catalog from a snapshot of the supplied plans. Cite: `example/runtime/PlanCatalog.html#(java.util.Map)` Parameters: `plans` `Map` (non-null, implied by @NullMarked on package example.runtime): the named plans to copy. ## Methods ### find(String) `@HotPath public @Nullable BuildPlan find(String name)`. Looks up the plan associated with a name. Cite: `example/runtime/PlanCatalog.html#find(java.lang.String)` Annotation contracts include latency-sensitive. Parameters: `name` `String` (non-null, implied by @NullMarked on package example.runtime): the catalog key. Returns `@Nullable BuildPlan` (nullable): the matching plan, or null on a miss. API note: Use `names()` to list the available keys. Implementation requirements: Lookup does not modify the catalog. Implementation note: Keys are compared using [`String.equals(Object)`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/String.html#equals%28java.lang.Object%29). ### names() `public List<@NonNull String> names()`. Returns the available keys in sorted order. Cite: `example/runtime/PlanCatalog.html#names()` Returns `List<@NonNull String>` (non-null, implied by @NullMarked on package example.runtime): the keys, which are non-null. ### lookup(String) `@NullUnmarked @Deprecated(since = "1.0", forRemoval = true) public BuildPlan lookup(String name)`. Deprecated for removal since 1.0. Cite: `example/runtime/PlanCatalog.html#lookup(java.lang.String)` Use `find(String)` for an explicit nullness contract. Returns a plan through the legacy lookup contract. Annotation contracts include null-unmarked. Parameters: `name` `String`: the catalog key. Returns `BuildPlan`: the lookup result. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ⚡︎ PlanException [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Exception in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java public final class PlanException extends Exception ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Throwable`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html) > [`Exception`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Exception.html) > `PlanException` Indicates that a [`BuildPlan`](example/runtime/BuildPlan.md) cannot be prepared. **See also** - [Feature tour](guides/feature-tour.md) - [Prepare your first build](guides/prepare-a-build.md) ## Constructors ### PlanException(String) `public PlanException(String reason)`. Creates a failure with an explanation suitable for the build log. Cite: `example/runtime/PlanException.html#(java.lang.String)` Parameters: `reason` `String` (non-null, implied by @NullMarked on package example.runtime): the rejected setting. ## Inherited members - From class [`Throwable`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html): [`addSuppressed`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#addSuppressed%28java.lang.Throwable%29), [`fillInStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#fillInStackTrace%28%29), [`getCause`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getCause%28%29), [`getLocalizedMessage`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getLocalizedMessage%28%29), [`getMessage`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getMessage%28%29), [`getStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getStackTrace%28%29), [`getSuppressed`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#getSuppressed%28%29), [`initCause`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#initCause%28java.lang.Throwable%29), [`printStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#printStackTrace%28%29), [`printStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#printStackTrace%28java.io.PrintStream%29), [`printStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#printStackTrace%28java.io.PrintWriter%29), [`setStackTrace`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#setStackTrace%28java.lang.StackTraceElement[]%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Throwable.html#toString%28%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ Planner [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Sealed abstract class in [`example.runtime`](example/runtime/index.md). Since 1.0. Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java public abstract sealed class Planner implements BuildStep permits Planner.Local ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > `Planner` Implements: [`BuildStep`](example/runtime/BuildStep.md)`<`[`BuildPlan`](example/runtime/BuildPlan.md)`>` Permitted subtypes: [`Planner.Local`](example/runtime/Planner.Local.md) Validates a [`BuildPlan`](example/runtime/BuildPlan.md) before handing it to a [`BuildStep`](example/runtime/BuildStep.md). Select a [`Target`](example/runtime/Target.md) and call [`prepare(BuildPlan)`](example/runtime/Planner.md#prepare%28example.runtime.BuildPlan%29) to check the entry point. **See also** - [`Planner.Options`](example/runtime/Planner.Options.md) - [Feature tour](guides/feature-tour.md) ## Nested types - [`Planner.Local`](example/runtime/Planner.Local.md) (class): Prepares builds against a locally installed toolchain. - [`Planner.Options`](example/runtime/Planner.Options.md) (record): Configuration for Local, including how to report progress. ## Methods ### target() `public abstract Target target()`. Identifies the runtime for prepared plans. Cite: `example/runtime/Planner.html#target()` Returns `Target` (non-null, implied by @NullMarked on package example.runtime): the selected target. ### prepare(BuildPlan) `public BuildPlan prepare(BuildPlan plan) throws PlanException`. Validates that the plan names an entry point. Cite: `example/runtime/Planner.html#prepare(example.runtime.BuildPlan)` Parameters: `plan` `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): configuration to validate. Returns `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): the validated plan. Throws: `PlanException`: when the entry point is blank. Overrides `prepare()`. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ◆ Planner.Local [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Class in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. Nested in [`Planner`](example/runtime/Planner.md). [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java @Experimental public static final class Planner.Local extends Planner ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Planner`](example/runtime/Planner.md) > `Local` Prepares builds against a locally installed toolchain. **See also** - [Prepare your first build](guides/prepare-a-build.md) ## Constructors ### Local(Planner.Options) `public Local(Planner.Options options)`. Uses explicit planning options. Cite: `example/runtime/Planner.Local.html#(example.runtime.Planner.Options)` Parameters: `options` `Planner.Options` (non-null, implied by @NullMarked on package example.runtime): runtime and progress settings. ### Local(Target) `public Local(Target target)`. Uses the supplied target with quiet progress. Cite: `example/runtime/Planner.Local.html#(example.runtime.Target)` Parameters: `target` `Target` (non-null, implied by @NullMarked on package example.runtime): the runtime. ## Methods ### target() `public Target target()`. Identifies the runtime for prepared plans. Cite: `example/runtime/Planner.Local.html#target()` Description copied from `target()`. Returns `Target` (non-null, implied by @NullMarked on package example.runtime): the selected target. Overrides `target()`. ### runtime() `@Deprecated(since = "1.0") public Target runtime()`. Deprecated since 1.0. Cite: `example/runtime/Planner.Local.html#runtime()` Use `target()`. Returns the configured runtime. Returns `Target` (non-null, implied by @NullMarked on package example.runtime): the selected target. ## Inherited members - From class [`Planner`](example/runtime/Planner.md): [`prepare`](example/runtime/Planner.md#prepare%28example.runtime.BuildPlan%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#equals%28java.lang.Object%29), [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#hashCode%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#toString%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ▤ Planner.Options [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Record in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. Nested in [`Planner`](example/runtime/Planner.md). [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java public record Planner.Options(Target target, Planner.Options.Detail detail) ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Record`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Record.html) > `Options` Configuration for [`Local`](example/runtime/Planner.Local.md), including how to report progress. **Record components** - `target` [`Target`](example/runtime/Target.md) (non-null, implied by @NullMarked on package example.runtime): the runtime - `detail` [`Planner.Options.Detail`](example/runtime/Planner.Options.Detail.md) (non-null, implied by @NullMarked on package example.runtime): the amount of progress to report **See also** - [Prepare your first build](guides/prepare-a-build.md) ## Nested types - [`Planner.Options.Detail`](example/runtime/Planner.Options.Detail.md) (enum class): Controls progress while preparing a plan. ## Constructors ### Options(Target, Planner.Options.Detail) `public Options(Target target, Planner.Options.Detail detail)`. Declared by the compiler. Creates a new Options instance. Cite: `example/runtime/Planner.Options.html#(example.runtime.Target,example.runtime.Planner.Options.Detail)` Parameters: `target` `Target` (non-null, implied by @NullMarked on package example.runtime): the runtime. `detail` `Planner.Options.Detail` (non-null, implied by @NullMarked on package example.runtime): the amount of progress to report. ## Methods ### toString() `public final String toString()`. Returns a string containing the record class name and its component names and values. Cite: `example/runtime/Planner.Options.html#toString()` Returns `String` (non-null, implied by @NullMarked on package example.runtime): Returns a string containing the record class name and its component names and values. Overrides `toString()`. ### hashCode() `public final int hashCode()`. Returns a hash code computed from the record components. Cite: `example/runtime/Planner.Options.html#hashCode()` Returns `int`: Returns a hash code computed from the record components. Overrides `hashCode()`. ### equals(Object) `public final boolean equals(Object o)`. Returns whether the other object is a record of the same class with equal components. Cite: `example/runtime/Planner.Options.html#equals(java.lang.Object)` Parameters: `o` `Object` (nullable, implied by JSpecify’s rule for record equals(Object)): The object to compare with this record. Returns `boolean`: Returns whether the other object is a record of the same class with equal components. Overrides `equals(java.lang.Object)`. ### target() `public Target target()`. the runtime. Cite: `example/runtime/Planner.Options.html#target()` Returns `Target` (non-null, implied by @NullMarked on package example.runtime): the runtime. ### detail() `public Planner.Options.Detail detail()`. the amount of progress to report. Cite: `example/runtime/Planner.Options.html#detail()` Returns `Planner.Options.Detail` (non-null, implied by @NullMarked on package example.runtime): the amount of progress to report. ## Inherited members - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ≡ Planner.Options.Detail [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Enum class in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. Nested in [`Planner.Options`](example/runtime/Planner.Options.md). [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java public enum Planner.Options.Detail ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Enum`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html) > `Detail` Controls progress while preparing a plan. ## Enum constants ### QUIET `QUIET`. Report only the result. Cite: `example/runtime/Planner.Options.Detail.html#QUIET` ### VERBOSE `VERBOSE`. Include each preparation step. Cite: `example/runtime/Planner.Options.Detail.html#VERBOSE` ## Methods ### values() `public static Planner.Options.Detail[] values()`. Returns the enum constants in declaration order. Cite: `example/runtime/Planner.Options.Detail.html#values()` Returns `Planner.Options.Detail[]` (non-null, implied by @NullMarked on package example.runtime): Returns the enum constants in declaration order. ### valueOf(String) `public static Planner.Options.Detail valueOf(String name)`. Returns the enum constant with the given name. Cite: `example/runtime/Planner.Options.Detail.html#valueOf(java.lang.String)` Parameters: `name` `String` (non-null, implied by @NullMarked on package example.runtime): The exact name of the enum constant. Returns `Planner.Options.Detail` (non-null, implied by @NullMarked on package example.runtime): Returns the enum constant with the given name. ## Inherited members - From class [`Enum`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html): [`compareTo`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#compareTo%28E%29), [`describeConstable`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#describeConstable%28%29), [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#equals%28java.lang.Object%29), [`getDeclaringClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#getDeclaringClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#hashCode%28%29), [`name`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#name%28%29), [`ordinal`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#ordinal%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#toString%28%29), [`valueOf`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#valueOf%28java.lang.Class,java.lang.String%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29) # ≡ Target [runtime-kit](index.md) › [example.runtime](example/runtime/index.md) · Every page: [llms.txt](llms.txt) Enum class in [`example.runtime`](example/runtime/index.md). Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0. ```java public enum Target ``` Inheritance: [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html) > [`Enum`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html) > `Target` Selects the runtime that will consume a [`BuildPlan`](example/runtime/BuildPlan.md). **See also** - [Feature tour](guides/feature-tour.md) ## Enum constants ### JVM `JVM`. Use the installed Java virtual machine. Cite: `example/runtime/Target.html#JVM` ### NATIVE `NATIVE`. Compile an operating-system executable. Cite: `example/runtime/Target.html#NATIVE` ## Methods ### values() `public static Target[] values()`. Returns the enum constants in declaration order. Cite: `example/runtime/Target.html#values()` Returns `Target[]` (non-null, implied by @NullMarked on package example.runtime): Returns the enum constants in declaration order. ### valueOf(String) `public static Target valueOf(String name)`. Returns the enum constant with the given name. Cite: `example/runtime/Target.html#valueOf(java.lang.String)` Parameters: `name` `String` (non-null, implied by @NullMarked on package example.runtime): The exact name of the enum constant. Returns `Target` (non-null, implied by @NullMarked on package example.runtime): Returns the enum constant with the given name. ## Inherited members - From class [`Enum`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html): [`compareTo`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#compareTo%28E%29), [`describeConstable`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#describeConstable%28%29), [`equals`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#equals%28java.lang.Object%29), [`getDeclaringClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#getDeclaringClass%28%29), [`hashCode`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#hashCode%28%29), [`name`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#name%28%29), [`ordinal`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#ordinal%28%29), [`toString`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#toString%28%29), [`valueOf`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Enum.html#valueOf%28java.lang.Class,java.lang.String%29) - From class [`Object`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html): [`getClass`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#getClass%28%29), [`notify`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notify%28%29), [`notifyAll`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#notifyAll%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long%29), [`wait`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Object.html#wait%28long,int%29)