@Internal
public interface PlanExecutionLockService
PlanExecutionManager
Modifier and Type | Method and Description |
---|---|
<V> V |
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 |
<V> V |
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 |
<V> V |
runWhenNoExecutionRequestsAreBeingMade(Callable<V> callable)
Executes the given
Callable when there are no requests being made to execute plans |
<V> V runWhenNoExecutionRequestsAreBeingMade(@NotNull Callable<V> callable) throws Exception
Callable
when there are no requests being made to execute plansV
- callable result typecallable
- to executeException
- if errorboolean isLocked(@NotNull TriggerableInternalKey lockKey)
String
has been lockedlockKey
- 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 lockV
- callable result typelockKey
- to lockacquisitionPolicy
- to acquire the lockcallable
- to executeException
- 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
- Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences