R- The type of the result this observer is expected to receive.
public interface TaskObserver
ObservableTaskfinishes 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 invoke
allFinishedwith the appropriate
FinishStatusobject depending on the scenario in which the task iterator finished.
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
|Modifier and Type||Method and Description|
Called by a
Called by an
void taskFinished(ObservableTask task)
ObservableTaskwhen it is finished executing.
task- The task being observed
void allFinished(FinishStatus finishStatus)
TaskManagerto tell us that the task iterator has completed.
finishStatus- Indicates how the task iterator completed.
Copyright 2011 Cytoscape Consortium. All rights reserved.