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.State
Nested classes/interfaces inherited from interface com.sk89q.worldedit.util.task.Task
Task.State
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractTask
(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, wasInterrupted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.Future
cancel, exceptionNow, get, get, isCancelled, isDone, resultNow, state
Methods inherited from interface com.google.common.util.concurrent.ListenableFuture
addListener
Methods 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:Task
Get the unique ID of this task.- Specified by:
getUniqueId
in interfaceTask<V>
- Returns:
- this task's unique ID
-
getName
Description copied from interface:Task
Get the name of the task so it can be printed to the user. -
getOwner
Description copied from interface:Task
Get the owner of the task. -
getCreationDate
Description copied from interface:Task
Get the time at which the task was created.- Specified by:
getCreationDate
in interfaceTask<V>
- Returns:
- a date
-