Package com.sk89q.worldedit.util.task
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 java.util.concurrent.Future
Future.StateNested classes/interfaces inherited from interface com.sk89q.worldedit.util.task.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, stateMethods inherited from interface com.google.common.util.concurrent.ListenableFuture
addListenerMethods inherited from interface com.sk89q.worldedit.util.task.progress.ProgressObservable
getProgress
-
Constructor Details
-
AbstractTask
Create a new instance.- Parameters:
name- the nameowner- the owner
-
-
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
Description copied from interface:TaskGet the name of the task so it can be printed to the user. -
getOwner
Description copied from interface:TaskGet the owner of the task. -
getCreationDate
Description copied from interface:TaskGet the time at which the task was created.- Specified by:
getCreationDatein interfaceTask<V>- Returns:
- a date
-