T
- the type of the input to the taskR
- the type of the result of the task@ExperimentalApi
public interface SandboxCallback<T,R>
SandboxTask
which is executed in a sandbox process may need to ask the host for
a specific information or an action. This class allows us to create a piece of code to be called from
SandboxTask
but executed in the host process.
As sandbox callbacks are executed in the same thread that called 'execute' method, thread local context will be shared (e.g. transactions).
The class must be public and must have a public parameter less constructor.
Modifier and Type | Method and Description |
---|---|
R |
apply(SandboxCallbackContext context,
T t) |
SandboxSerializer<T> |
inputSerializer()
Returns
SandboxSerializer for the callback input. |
SandboxSerializer<R> |
outputSerializer()
Returns
SandboxSerializer for the callback output. |
R apply(SandboxCallbackContext context, T t)
SandboxSerializer<T> inputSerializer()
SandboxSerializer
for the callback input.SandboxSerializer<R> outputSerializer()
SandboxSerializer
for the callback output.Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences