Package org.graalvm.nativeimage
Class Isolates.CreateIsolateParameters.Builder
java.lang.Object
org.graalvm.nativeimage.Isolates.CreateIsolateParameters.Builder
- Enclosing class:
Isolates.CreateIsolateParameters
Builder for a
Isolates.CreateIsolateParameters
instance.- Since:
- 19.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappendArgument
(String argument) Appends an isolate argument.auxiliaryImagePath
(String filePath) Sets the file path to an auxiliary image which should be loaded in addition to the main image, ornull
if no such image should be loaded.Sets the size in bytes of an address space to reserve for loading an auxiliary image in addition to the main image, or 0 if no space should be reserved.build()
Produces the finalIsolates.CreateIsolateParameters
with the values set previously by the builder methods.Sets the size in bytes for the reserved virtual address space of the new isolate.Sets theIsolates.ProtectionDomain
for an isolate.
-
Constructor Details
-
Builder
public Builder()Creates a new builder with default values.- Since:
- 19.0
-
-
Method Details
-
reservedAddressSpaceSize
Sets the size in bytes for the reserved virtual address space of the new isolate.- Since:
- 19.0
-
auxiliaryImagePath
Sets the file path to an auxiliary image which should be loaded in addition to the main image, ornull
if no such image should be loaded.- Since:
- 20.1
-
auxiliaryImageReservedSpaceSize
Sets the size in bytes of an address space to reserve for loading an auxiliary image in addition to the main image, or 0 if no space should be reserved.- Since:
- 20.1
-
appendArgument
Appends an isolate argument. The syntax for arguments is the same as the one that is used on the command-line when starting Native Image (e.g.,-XX:+AutomaticReferenceHandling
). If the same argument is added multiple times, the last specified value will be used.- Since:
- 22.1
-
setProtectionDomain
public Isolates.CreateIsolateParameters.Builder setProtectionDomain(Isolates.ProtectionDomain domain) Sets theIsolates.ProtectionDomain
for an isolate.- Since:
- 22.1
-
build
Produces the finalIsolates.CreateIsolateParameters
with the values set previously by the builder methods.- Since:
- 19.0
-