|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlanExecutionLockService
Locking manager for PlanExecutionManager
Method Summary | ||
---|---|---|
|
inlineProcessLocks(PlanKey planKey,
AcquisitionPolicy acquisitionPolicy,
java.util.concurrent.Callable<V> callable)
A parallel locking mechanism that allows a backdoor to the standard lock. |
|
void |
interruptLockOwner(PlanKey planKey)
Interrupts the owner of the lock represented by PlanKey |
|
boolean |
isLocked(PlanKey planKey)
Checks if the given PlanKey has been locked |
|
|
lock(PlanKey planKey,
AcquisitionPolicy acquisitionPolicy,
java.util.concurrent.Callable<V> callable)
Acquires a lock on the given PlanKey then calls the given Callable within the global request lock |
|
|
runWhenNoExecutionRequestsAreBeingMade(java.util.concurrent.Callable<V> callable)
Executes the given Callable when there are no requests being made to execute plans |
Method Detail |
---|
<V> V runWhenNoExecutionRequestsAreBeingMade(@NotNull java.util.concurrent.Callable<V> callable) throws java.lang.Exception
Callable
when there are no requests being made to execute plans
V
- callable result typecallable
- to execute
java.lang.Exception
- if errorboolean isLocked(@NotNull PlanKey planKey)
PlanKey
has been locked
planKey
- to check
<V> V lock(@NotNull PlanKey planKey, @NotNull AcquisitionPolicy acquisitionPolicy, @NotNull java.util.concurrent.Callable<V> callable) throws java.lang.Exception
PlanKey
then calls the given Callable
within the global request lock
V
- callable result typeplanKey
- to lockacquisitionPolicy
- to acquire the lockcallable
- to execute
java.lang.Exception
- if error<V> V inlineProcessLocks(@NotNull PlanKey planKey, @NotNull AcquisitionPolicy acquisitionPolicy, @NotNull java.util.concurrent.Callable<V> callable) throws java.lang.Exception
isLocked(PlanKey)
and interruptLockOwner(PlanKey)
V
- planKey
- acquisitionPolicy
- callable
-
java.lang.Exception
void interruptLockOwner(@NotNull PlanKey planKey)
PlanKey
planKey
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |