public class DefaultExecutors extends java.lang.Object implements IExecutors
| Constructor and Description |
|---|
DefaultExecutors(ILogger logger)
Creates a new instance of the DefaultExecutors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
performOnBackground(java.lang.Runnable runnable)
Runs the given Runnable on the background thread.
|
<Result> void |
performOnForeground(ClientException exception,
ICallback<Result> callback)
Performs the given callback with the exception object.
|
<Result> void |
performOnForeground(int progress,
int progressMax,
IProgressCallback<Result> callback)
Performs the given callback with the result object.
|
<Result> void |
performOnForeground(Result result,
ICallback<Result> callback)
Performs the given callback with the result object.
|
public DefaultExecutors(ILogger logger)
logger - The logger.public void performOnBackground(java.lang.Runnable runnable)
performOnBackground in interface IExecutorsrunnable - The Runnable to execute.public <Result> void performOnForeground(Result result,
ICallback<Result> callback)
performOnForeground in interface IExecutorsResult - The result type.result - The result value.callback - The callback to call on the foreground with this result.public <Result> void performOnForeground(int progress,
int progressMax,
IProgressCallback<Result> callback)
performOnForeground in interface IExecutorsResult - The result type.progress - The progress value.progressMax - The progress value.callback - The callback to call on the foreground with this result.public <Result> void performOnForeground(ClientException exception, ICallback<Result> callback)
performOnForeground in interface IExecutorsResult - The result type.exception - The exception value.callback - The callback to call on the foreground with this exception.