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