public enum V8RuntimeTerminationMode extends java.lang.Enum<V8RuntimeTerminationMode>
Enum Constant and Description |
---|
Asynchronous
The asynchronous termination mode.
|
Synchronous
The synchronous termination mode.
|
Modifier and Type | Method and Description |
---|---|
static V8RuntimeTerminationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static V8RuntimeTerminationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final V8RuntimeTerminationMode Asynchronous
This mode indicates that the V8 runtime will be terminated asynchronously. It creates a new thread that executes the termination.
public static final V8RuntimeTerminationMode Synchronous
This mode indicates that the V8 runtime will be terminated synchronously. It blocks the current thread until the termination call is complete.
public static V8RuntimeTerminationMode[] values()
for (V8RuntimeTerminationMode c : V8RuntimeTerminationMode.values()) System.out.println(c);
public static V8RuntimeTerminationMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null