@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 - Exceptionvoid interruptLockOwner(@NotNull
TriggerableInternalKey lockKey)
TriggerableInternalKeylockKey - Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.