public static enum PythonInterpreterConfig.ExecType extends Enum<PythonInterpreterConfig.ExecType>
| Enum Constant and Description |
|---|
MULTI_THREAD
Python supports execute the python function in multi thread.
|
SUB_INTERPRETER
Python Sub Interpreter has better performance than multi thread because it can better
overcome the performance impact of GIL, but some Python libraries including CPython
extensions may not support sub interpreter.
|
| Modifier and Type | Method and Description |
|---|---|
static PythonInterpreterConfig.ExecType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PythonInterpreterConfig.ExecType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PythonInterpreterConfig.ExecType MULTI_THREAD
public static final PythonInterpreterConfig.ExecType SUB_INTERPRETER
public static PythonInterpreterConfig.ExecType[] values()
for (PythonInterpreterConfig.ExecType c : PythonInterpreterConfig.ExecType.values()) System.out.println(c);
public static PythonInterpreterConfig.ExecType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022–2025. All rights reserved.