public interface UiReporter
BackgroundTask or
execute other task on the AWT Event Dispatch Thread.
BackgroundTask,
BackgroundTaskExecutor| Modifier and Type | Method and Description |
|---|---|
void |
updateProgress(Runnable task)
Executes a task on the AWT Event Dispatch Thread which is intended
to be used to display the current progress of the associated background
task.
|
void |
writeData(Runnable task)
Executes a generic task on the AWT Event Dispatch Thread.
|
void updateProgress(Runnable task)
The submitted task will be executed in the context of the access token associated with the background task. If the access token has been released, the submitted task will not be executed but will be silently discarded.
Calling this method may cause tasks submitted by this method previously to be discarded. This allows the task to update its progress frequently and not worry about flooding the event queue.
Tasks submitted by this method and the
writeData method are executed in the same
order as they were submitted.
task - the task to be executed on the
AWT Event Dispatch Thread. This argument cannot be null.void writeData(Runnable task)
The submitted task will be executed in the context of the access token associated with the background task. If the access token has been released, the submitted task will not be executed but will be silently discarded.
This method differs from the updateProgress method only by not
being discarded due to tasks submitted later.
Tasks submitted by this method and the
updateProgress method are executed in
the same order as they were submitted.
task - the task to be executed on the
AWT Event Dispatch Thread. This argument cannot be null.