Package org.cytoscape.work
Interface TaskObserver
-
- Type Parameters:
R- The type of the result this observer is expected to receive.
public interface TaskObserverAn observer that gets notified when anObservableTaskfinishes executing. If the task finishes,taskFinished()is called with whatever result the task produces, if any. When a task iterator finishes, the task manager will invokeallFinishedwith the appropriateFinishStatusobject depending on the scenario in which the task iterator finished.Module:
work-apiTo use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (SPI Interface): We expect that this interface will be implemented. Therefore to maintain backwards compatibility this interface will only be modified for major version updates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallFinished(FinishStatus finishStatus)Called by aTaskManagerto tell us that the task iterator has completed.voidtaskFinished(ObservableTask task)Called by anObservableTaskwhen it is finished executing.
-
-
-
Method Detail
-
taskFinished
void taskFinished(ObservableTask task)
Called by anObservableTaskwhen it is finished executing.- Parameters:
task- The task being observed
-
allFinished
void allFinished(FinishStatus finishStatus)
Called by aTaskManagerto tell us that the task iterator has completed.- Parameters:
finishStatus- Indicates how the task iterator completed.
-
-