R - the type of the job outputpublic abstract static class SandboxBackgroundTask.Job<R>
extends java.lang.Object
| Constructor and Description |
|---|
Job() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeRethrow(java.lang.Throwable t)
Invoked immediately after
run method throws a
java.lang.Throwable object, and before the
error is re-thrown. |
abstract R |
run(java.lang.Object input)
Runs this job.
|
public abstract R run(java.lang.Object input) throws java.lang.Exception
input - the input to the jobjava.lang.Exception - if this job throws an Exceptionpublic void beforeRethrow(java.lang.Throwable t)
run method throws a
java.lang.Throwable object, and before the
error is re-thrown. The implementation may override this method to
perform any clean-up task before the error is re-thrown.t - the java.lang.Throwable object thrown by
run method