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
  • 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

      static SandboxSpec of(Duration requestTimeLimit)
    • builder

      static SandboxSpec.SpecBuilder builder()