Interface Task<V>
- All Superinterfaces:
Future<V>, com.google.common.util.concurrent.ListenableFuture<V>, ProgressObservable
- All Known Implementing Classes:
AbstractTask, FutureForwardingTask
public interface Task<V>
extends com.google.common.util.concurrent.ListenableFuture<V>, ProgressObservable
A task is a job that can be scheduled, run, or cancelled. Tasks can report
on their own status. Tasks have owners.
-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from interface Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, stateMethods inherited from interface com.google.common.util.concurrent.ListenableFuture
addListenerMethods inherited from interface ProgressObservable
getProgress
-
Method Details
-
getUniqueId
-
getName
String getName()Get the name of the task so it can be printed to the user.- Returns:
- the name of the task
-
getOwner
Get the owner of the task.- Returns:
- an owner object, if one is known or valid, otherwise
null
-
getState
-
getCreationDate
-