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(String name,
Object owner)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreationDate()
Get the time at which the task was created.
|
String |
getName()
Get the name of the task so it can be printed to the user.
|
Object |
getOwner()
Get the owner of the task.
|
UUID |
getUniqueId()
Get the unique ID of this task.
|
addListener, cancel, get, get, interruptTask, isCancelled, isDone, set, setException, wasInterruptedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProgresspublic UUID getUniqueId()
TaskgetUniqueId in interface Task<V>public String getName()
Task@Nullable public Object getOwner()
Taskpublic Date getCreationDate()
TaskgetCreationDate in interface Task<V>Copyright © 2015. All Rights Reserved.