Class LockManagerImpl
java.lang.Object
org.flowable.common.engine.impl.lock.LockManagerImpl
- All Implemented Interfaces:
LockManager
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandExecutorprotected Stringprotected booleanprotected static final intprotected CommandConfigprotected Durationprotected Stringprotected Durationprotected static final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionLockManagerImpl(CommandExecutor commandExecutor, String lockName, Duration lockPollRate, String engineType) LockManagerImpl(CommandExecutor commandExecutor, String lockName, Duration lockPollRate, Duration forceAcquireAfter, String engineType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanacquireLock(Duration lockForceAcquireAfter) protected <T> TexecuteCommand(Command<T> command) protected DurationvoidvoidvoidwaitForLock(Duration waitTime) <T> TwaitForLockRunAndRelease(Duration waitTime, Supplier<T> supplier)
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
LOCK_NAME_MAX_LENGTH
protected static final int LOCK_NAME_MAX_LENGTH- See Also:
-
commandExecutor
-
lockName
-
lockPollRate
-
engineType
-
lockCommandConfig
-
hasAcquiredLock
protected boolean hasAcquiredLock -
lockForceAcquireAfter
-
-
Constructor Details
-
LockManagerImpl
public LockManagerImpl(CommandExecutor commandExecutor, String lockName, Duration lockPollRate, String engineType) -
LockManagerImpl
public LockManagerImpl(CommandExecutor commandExecutor, String lockName, Duration lockPollRate, Duration forceAcquireAfter, String engineType)
-
-
Method Details
-
waitForLock
- Specified by:
waitForLockin interfaceLockManager
-
acquireLock
public boolean acquireLock()- Specified by:
acquireLockin interfaceLockManager
-
acquireLock
- Specified by:
acquireLockin interfaceLockManager
-
releaseLock
public void releaseLock()- Specified by:
releaseLockin interfaceLockManager
-
releaseAndDeleteLock
public void releaseAndDeleteLock()- Specified by:
releaseAndDeleteLockin interfaceLockManager
-
waitForLockRunAndRelease
- Specified by:
waitForLockRunAndReleasein interfaceLockManager
-
executeCommand
-
getLockPollRate
-