R
- The type of the value this Task
produces.public interface ObservableTask extends Task
Task
that notifies its observers when it is finished
executing.Module: work-api
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 |
---|---|
default List<Class<?>> |
getResultClasses()
Return the classes that can be used to query {@link org.cytoscape.work.ObservableTask#getResults(Class)
|
<R> R |
getResults(Class<? extends R> type)
Return the results from this task (if any)
|
<R> R getResults(Class<? extends R> type)
type
- the class type of the returned results. This
is primarily used to request that the Task format the return
as a String, but other types are possible also. All ObservableTasks
should be able to handle String requests.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.