public interface IExecutors
| 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
|
void |
shutdownBackgroundExecutors()
Shuts down the background executors
|
void performOnBackground(java.lang.Runnable runnable)
runnable - the Runnable to execute<Result> void performOnForeground(Result result,
ICallback<Result> callback)
Result - the result typeresult - the result valuecallback - the callback to call on the foreground with this result<Result> void performOnForeground(int progress,
int progressMax,
IProgressCallback<Result> callback)
Result - the result typeprogress - the progress valueprogressMax - the max progress valuecallback - the callback to call on the foreground with this result<Result> void performOnForeground(ClientException exception, ICallback<Result> callback)
Result - the result typeexception - the exception valuecallback - the callback to call on the foreground with this exceptionvoid shutdownBackgroundExecutors()