- Type Parameters:
R- The type of the result this observer is expected to receive.
public interface TaskObserver
An observer that gets notified when an
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.
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.
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>work-api</artifactId> </dependency>
(ObservableTask task)Called by an
ObservableTaskwhen it is finished executing.
task- The task being observed
(FinishStatus finishStatus)Called by a
TaskManagerto tell us that the task iterator has completed.
finishStatus- Indicates how the task iterator completed.