Class RuntimeStateTrimConfig
java.lang.Object
org.graalvm.nativeimage.RuntimeStateTrimConfig
Configuration for
VMRuntime.trimRuntimeState(RuntimeStateTrimConfig).
This configuration selects a high-level trim mode and optional callbacks that run before and after the trim. The runtime translates the selected mode into the concrete actions performed at safepoint.
- Since:
- 25.5
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInvoked after runtime trim completes.static interfaceInvoked before runtime trim begins.static final classBuilder for runtime-state trim configurations.static enumSelects the overall trim goal. -
Method Summary
Modifier and TypeMethodDescriptionInvoked after runtime trim completes.Invoked before runtime trim begins.Returns a builder for configuring runtime-state trim.mode()Returns the selected trim mode.
-
Method Details
-
mode
Returns the selected trim mode. -
beforeRuntimeStateTrim
Invoked before runtime trim begins. -
afterRuntimeStateTrim
Invoked after runtime trim completes. -
builder
Returns a builder for configuring runtime-state trim.- Parameters:
mode- the overall trim goal
-