@ExperimentalApi
public interface Sandbox
Sandbox objects are obtained from injected SandboxRegistry
. For unit tests,
com.atlassian.confluence.impl.util.sandbox.TestSandbox
should be used.
Modifier and Type | Method and Description |
---|---|
<T,R> R |
execute(SandboxTask<T,R> task,
T input)
Run the given task with the given input in a process sandbox.
|
<T,R> R |
execute(SandboxTask<T,R> task,
T input,
Duration timeLimit)
Run the given task with the given input in a process sandbox and limit a call by a given time limit.
|
<T,R> R execute(SandboxTask<T,R> task, T input)
SandboxTimeoutException
- when sandbox request has been timed outSandboxCrashedException
- when sandbox JVM has been crashedSandboxException
- if sandbox request has failed for some other reason<T,R> R execute(SandboxTask<T,R> task, T input, Duration timeLimit)
SandboxTimeoutException
- when sandbox request has been timed outSandboxCrashedException
- when sandbox JVM has been crashedSandboxException
- if sandbox request has failed for some other reasonCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences