R - the type of the task resultpublic static class SandboxBackgroundTask.SimpleProxy<R> extends SandboxBackgroundTask.Proxy<R>
| Constructor and Description |
|---|
SimpleProxy()
Creates a simply proxy.
|
| Modifier and Type | Method and Description |
|---|---|
R |
getResult()
Waits until the result is available and returns the result.
|
protected SandboxBackgroundTask.SimpleTask<R> |
newSimpleTask(SandboxBackgroundTask.Job<java.lang.Object> fj,
SandboxBackgroundTask.Job<R> bj)
Creates a new
SimpleTask. |
protected SandboxBackgroundTask<R> |
newTask(SandboxBackgroundTask.Job<java.lang.Object> fj,
SandboxBackgroundTask.Job<R> bj)
Creates a new task.
|
getTimeout, getTimeoutTimeUnit, performTask, performTask, timedOut, waitInterruptedprotected final SandboxBackgroundTask<R> newTask(SandboxBackgroundTask.Job<java.lang.Object> fj, SandboxBackgroundTask.Job<R> bj)
SandboxBackgroundTask.ProxynewTask in class SandboxBackgroundTask.Proxy<R>fj - the job that runs in the current threadbj - the job that runs in a background threadprotected SandboxBackgroundTask.SimpleTask<R> newSimpleTask(SandboxBackgroundTask.Job<java.lang.Object> fj, SandboxBackgroundTask.Job<R> bj)
SimpleTask.fj - the foreground jobbj - the background jobSimpleTaskpublic R getResult() throws java.lang.InterruptedException
java.lang.InterruptedException - if the wait is interrupted