V
- the type returnedpublic abstract class AbstractTask<V> extends com.google.common.util.concurrent.AbstractFuture<V> implements Task<V>
Task.State
Modifier | Constructor and Description |
---|---|
protected |
AbstractTask(java.lang.String name,
java.lang.Object owner)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCreationDate()
Get the time at which the task was created.
|
java.lang.String |
getName()
Get the name of the task so it can be printed to the user.
|
java.lang.Object |
getOwner()
Get the owner of the task.
|
java.util.UUID |
getUniqueId()
Get the unique ID of this task.
|
addListener, afterDone, cancel, get, get, interruptTask, isCancelled, isDone, set, setException, setFuture, wasInterrupted
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProgress
protected AbstractTask(java.lang.String name, @Nullable java.lang.Object owner)
name
- the nameowner
- the ownerpublic java.util.UUID getUniqueId()
Task
getUniqueId
in interface Task<V>
public java.lang.String getName()
Task
@Nullable public java.lang.Object getOwner()
Task
public java.util.Date getCreationDate()
Task
getCreationDate
in interface Task<V>