public interface DeploymentLockStrategy
DeploymentLockStrategyDefault
.Modifier and Type | Method and Description |
---|---|
void |
acquire(ManagedReadWriteLock engineWideLock)
Acquire should acquire the write lock of the provided read-write lock and may retry and backoff or fail.
|
void |
release(ManagedReadWriteLock engineWideLock)
Release should release the write lock of the provided read-write lock and should never fail.
|
void acquire(ManagedReadWriteLock engineWideLock) throws DeploymentLockException, InterruptedException
engineWideLock
- the engine-wide event processing read-write lockDeploymentLockException
- to indicate lock attempt failedInterruptedException
- when lock-taking is interruptedvoid release(ManagedReadWriteLock engineWideLock)
engineWideLock
- the engine-wide event processing read-write lock