public interface IAsyncTask
extends com.aspose.ms.System.IAsyncResult, com.aspose.ms.System.IDisposable
The asynchronous task.
IAsyncResult
,
IDisposable
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts this task.
|
void |
cancel()
Cancels this task.
|
Throwable |
getError()
Gets the task error which is available after the task is completed.
|
AsyncTaskProgress |
getProgress()
Gets the progress of the asynchronous task.
|
Object |
getResult()
Gets the result of this task.
|
boolean |
isBusy()
Gets a value indicating whether this task is currently running.
|
boolean |
isCanceled()
Gets a value indicating whether this task was canceled.
|
boolean |
isFaulted()
Gets a value indicating whether this task was faulted.
|
void |
runAsync()
Runs this task.
|
void |
runAsync(int priority)
Runs this task.
|
void |
setCompleteCallback(CompleteCallback completeCallback)
Sets the complete callback delegate.
|
void |
setProgressCallback(ProgressCallback progressCallback)
Sets the progress callback delegate.
|
AsyncTaskProgress getProgress()
Gets the progress of the asynchronous task.
Value: The progress of the asynchronous task.boolean isBusy()
Gets a value indicating whether this task is currently running.
Value:true
if this task is currently running; otherwise, false
.boolean isCanceled()
Gets a value indicating whether this task was canceled.
Value:true
if this task was canceled; otherwise, false
.boolean isFaulted()
Gets a value indicating whether this task was faulted.
Value:true
if this task was faulted; otherwise, false
.Throwable getError()
Gets the task error which is available after the task is completed.
Value: The task error.Object getResult()
Gets the result of this task.
Value: The result of this task.void runAsync()
Runs this task.
void runAsync(int priority)
Runs this task.
priority
- The thread priority.void cancel()
Cancels this task. The task is completed safely by the controlled stopping of the algorithm.
void abort()
Aborts this task. The task is completed immediately, with the risk of not freeing internal unmanaged resources.
void setProgressCallback(ProgressCallback progressCallback)
Sets the progress callback delegate.
progressCallback
- The progress callback.void setCompleteCallback(CompleteCallback completeCallback)
Sets the complete callback delegate.
completeCallback
- The complete callback.