Interface SandboxSpec
-
@ExperimentalApi public interface SandboxSpecSpecification 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 interfaceSandboxSpec.SpecBuilder
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static SandboxSpec.SpecBuilderbuilder()SandboxCallbackContextcallbackContext()Callback context object for this sandbox instanceintminimumMemoryInMb()Minimum amount of heap memory sandbox JVM should haveintminimumStackInMb()Minimum amount of stack every sandbox thread should havestatic SandboxSpecof(Duration requestTimeLimit)DurationrequestTimeLimit()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()
-
-