Interface SandboxSpec
@ExperimentalApi
public interface SandboxSpec
Specification for the sandbox which will be used in searching the most suitable sandbox instance in
SandboxRegistry
.- Since:
- 6.12
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SandboxSpec.SpecBuilder
builder()
Callback context object for this sandbox instanceint
Minimum amount of heap memory sandbox JVM should haveint
Minimum amount of stack every sandbox thread should havestatic SandboxSpec
Sandbox function call taking longer that this time limit will be terminated.
-
Method Details
-
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
-
builder
-