Interface SandboxSpec
-
@ExperimentalApi public interface SandboxSpec
Specification for the sandbox which will be used in searching the most suitable sandbox instance inSandboxRegistry
.- Since:
- 6.12
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SandboxSpec.SpecBuilder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static SandboxSpec.SpecBuilder
builder()
SandboxCallbackContext
callbackContext()
Callback context object for this sandbox instanceint
minimumMemoryInMb()
Minimum amount of heap memory sandbox JVM should haveint
minimumStackInMb()
Minimum amount of stack every sandbox thread should havestatic SandboxSpec
of(Duration requestTimeLimit)
Duration
requestTimeLimit()
Sandbox function call taking longer that this time limit will be terminated.
-
-
-
Method Detail
-
minimumMemoryInMb
int minimumMemoryInMb()
Minimum amount of heap memory sandbox JVM should have
-
requestTimeLimit
Duration requestTimeLimit()
Sandbox function call taking longer that this time limit will be terminated. The sandbox process will be killed and restarted on the next call.
-
minimumStackInMb
int minimumStackInMb()
Minimum amount of stack every sandbox thread should have
-
callbackContext
SandboxCallbackContext callbackContext()
Callback context object for this sandbox instance
-
of
static SandboxSpec of(Duration requestTimeLimit)
-
builder
static SandboxSpec.SpecBuilder builder()
-
-