|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.FutureTask<T>
com.bigdata.concurrent.FutureTaskMon<T>
com.bigdata.concurrent.NonBlockingLockManagerWithNewDesign.LockFutureTask<R,T>
T - The generic type of the outcome for the Future.public static class NonBlockingLockManagerWithNewDesign.LockFutureTask<R extends Comparable<R>,T>
FutureTask which executes once it holds its locks.
| Method Summary | |
|---|---|
protected NonBlockingLockManagerWithNewDesign.LockFutureTask<R,T> |
acceptTask()
Accept the task for eventual execution. |
boolean |
cancel(boolean mayInterruptIfRunning)
Note: We do not need to remove the task from the readyQueue when it is cancelled. |
long |
getLockLatency()
The elapsed nanoseconds the task waited to acquire its locks. |
R[] |
getResource()
The resource(s) that are pre-declared by the task. |
boolean |
isLocksHeld()
Return true iff the task holds all its locks. |
void |
run()
|
protected void |
setException(Throwable t)
Note: We do not need to remove the task from the readyQueue when it an exception is set on it. |
String |
toString()
|
| Methods inherited from class java.util.concurrent.FutureTask |
|---|
done, get, get, isCancelled, isDone, runAndReset, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public R[] getResource()
#call()
will ensure that the task as a lock on these resources before it
invokes run() to execution the task.
public long getLockLatency()
public String toString()
toString in class Objectprotected NonBlockingLockManagerWithNewDesign.LockFutureTask<R,T> acceptTask()
public boolean isLocksHeld()
true iff the task holds all its locks.
protected void setException(Throwable t)
setException in class FutureTask<T>public boolean cancel(boolean mayInterruptIfRunning)
cancel in interface Future<T>cancel in class FutureTaskMon<T>public void run()
FutureTaskMonHooked to notice when the task has been started.
run in interface Runnablerun in interface RunnableFuture<T>run in class FutureTaskMon<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||