public class DeploymentLockStrategyDefault extends Object implements DeploymentLockStrategy
Modifier and Type | Field and Description |
---|---|
static DeploymentLockStrategyDefault |
INSTANCE |
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.
|
public static final DeploymentLockStrategyDefault INSTANCE
public void acquire(ManagedReadWriteLock engineWideLock) throws DeploymentLockException
DeploymentLockStrategy
acquire
in interface DeploymentLockStrategy
engineWideLock
- the engine-wide event processing read-write lockDeploymentLockException
- to indicate lock attempt failedpublic void release(ManagedReadWriteLock engineWideLock)
DeploymentLockStrategy
release
in interface DeploymentLockStrategy
engineWideLock
- the engine-wide event processing read-write lock