T - The return type of the task. Use Void if it does not
return a value.public interface ProgressTask<T>
| Modifier and Type | Method and Description |
|---|---|
T |
execute(org.pepsoft.util.ProgressReceiver progressReceiver)
Perform the task, optionally reporting progress to a progress receiver
and optionally returning a value.
|
String |
getName()
Get the short descriptive name of the task.
|
String getName()
T execute(org.pepsoft.util.ProgressReceiver progressReceiver) throws org.pepsoft.util.ProgressReceiver.OperationCancelled
progressReceiver - The progress receiver to which to report
progress. May be null.null if it does not
return a result.ProgressReceiver.OperationCancelled - If the user cancelled the
operation, as indicated by the progress receiver throwing an
OperationCancelled exception.Copyright © 2011–2023 pepsoft.org. All rights reserved.