T
- The generic type of the outcome for the Future
.public static class NonBlockingLockManagerWithNewDesign.LockFutureTask<R extends Comparable<R>,T> extends FutureTaskMon<T>
FutureTask
which executes once it holds its locks.Modifier and Type | Method and Description |
---|---|
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() |
done, get, get, isCancelled, isDone, runAndReset, set
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()
protected 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)
public void run()
FutureTaskMon
Hooked to notice when the task has been started.
run
in interface Runnable
run
in interface RunnableFuture<T>
run
in class FutureTaskMon<T>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.