public static class DefaultLockManager.DefaultLockManagerBuilder extends Object
| Constructor and Description |
|---|
DefaultLockManagerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
DefaultLockManager |
build() |
DefaultLockManager.DefaultLockManagerBuilder |
setLockAcquiredForMillis(long millis)
Indicates the number of milliseconds the lock will be acquired for
|
DefaultLockManager.DefaultLockManagerBuilder |
setLockQuitTryingAfterMillis(long millis)
If the flag 'waitForLog' is set, indicates the maximum time it will wait for the lock in total.
|
DefaultLockManager.DefaultLockManagerBuilder |
setLockRepository(LockRepository lockRepository) |
DefaultLockManager.DefaultLockManagerBuilder |
setLockTryFrequencyMillis(long millis)
Updates the maximum number of tries to acquire the lock, if the flag 'waitForLog' is set
|
DefaultLockManager.DefaultLockManagerBuilder |
setTimeUtils(TimeService timeService) |
public DefaultLockManager.DefaultLockManagerBuilder setLockQuitTryingAfterMillis(long millis)
If the flag 'waitForLog' is set, indicates the maximum time it will wait for the lock in total.
millis - max waiting time for lock. Must be greater than 0public DefaultLockManager.DefaultLockManagerBuilder setLockTryFrequencyMillis(long millis)
Updates the maximum number of tries to acquire the lock, if the flag 'waitForLog' is set
Default 1
millis - number of triespublic DefaultLockManager.DefaultLockManagerBuilder setLockAcquiredForMillis(long millis)
Indicates the number of milliseconds the lock will be acquired for
Minimum 3 seconds
millis - milliseconds the lock will be acquired forpublic DefaultLockManager.DefaultLockManagerBuilder setLockRepository(LockRepository lockRepository)
public DefaultLockManager.DefaultLockManagerBuilder setTimeUtils(TimeService timeService)
public DefaultLockManager build()
Copyright © 2022. All rights reserved.