Class AbstractTask<V>
java.lang.Object
com.google.common.util.concurrent.internal.InternalFutureFailureAccess
com.google.common.util.concurrent.AbstractFuture<V>
com.sk89q.worldedit.util.task.AbstractTask<V>
- Type Parameters:
V- the type returned
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>, ProgressObservable, Task<V>, Future<V>
- Direct Known Subclasses:
FutureForwardingTask
public abstract class AbstractTask<V>
extends com.google.common.util.concurrent.AbstractFuture<V>
implements Task<V>
An abstract task that stores a name and owner.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Future
Future.StateNested classes/interfaces inherited from interface Task
Task.State -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTask(String name, Object owner) Create a new instance. -
Method Summary
Methods inherited from class com.google.common.util.concurrent.AbstractFuture
addListener, afterDone, cancel, get, get, interruptTask, isCancelled, isDone, pendingToString, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterruptedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
Constructor Details
-
AbstractTask
-
-
Method Details
-
getUniqueId
Description copied from interface:TaskGet the unique ID of this task.- Specified by:
getUniqueIdin interfaceTask<V>- Returns:
- this task's unique ID
-
getName
-
getOwner
-
getCreationDate
Description copied from interface:TaskGet the time at which the task was created.- Specified by:
getCreationDatein interfaceTask<V>- Returns:
- a date
-