Interface SandboxTask<T,​R>

  • Type Parameters:
    T - the type of the input to the task
    R - the type of the result of the task

    @ExperimentalApi
    public interface SandboxTask<T,​R>
    Represents a task intended to be executed in a process sandbox. To run untrusted code, we need to wrap it in a class implementing this interface and call the task by passing it along with its input argument into Sandbox.execute(SandboxTask, Object). The class must be public and must have a public parameter less constructor.
    Since:
    6.9