Interface SandboxSpec.SpecBuilder

  • Enclosing interface:
    SandboxSpec

    public static interface SandboxSpec.SpecBuilder
    • Method Detail

      • withMinimumMemoryInMb

        SandboxSpec.SpecBuilder withMinimumMemoryInMb​(int minimumMemoryInMb)
        Minimum JVM heap memory requirement for sandbox process
      • withMinimumStackInMb

        SandboxSpec.SpecBuilder withMinimumStackInMb​(int minimumStackInMb)
        Minimum amount of heap memory sandbox JVM should have
      • registerCallbackContextObject

        SandboxSpec.SpecBuilder registerCallbackContextObject​(Class<?> type,
                                                              Object instance)
        Add single mapping to callback context for this sandbox spec
      • build

        SandboxSpec build​(Duration requestTimeLimit)
        Build the specification object with specified request time limit