public static class LockManagerDefault.DefaultLockManagerBuilder extends Object
| Constructor and Description |
|---|
DefaultLockManagerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
LockManagerDefault |
build() |
LockManagerDefault.DefaultLockManagerBuilder |
disableBackGround() |
LockManagerDefault.DefaultLockManagerBuilder |
setLockAcquiredForMillis(long millis)
Indicates the number of milliseconds the lock will be acquired for
|
LockManagerDefault.DefaultLockManagerBuilder |
setLockQuitTryingAfterMillis(long millis)
If the flag 'waitForLog' is set, indicates the maximum time it will wait for the lock in total.
|
LockManagerDefault.DefaultLockManagerBuilder |
setLockRepository(LockRepository lockRepository) |
LockManagerDefault.DefaultLockManagerBuilder |
setLockTryFrequencyMillis(long millis)
Updates the maximum number of tries to acquire the lock, if the flag 'waitForLog' is set
|
LockManagerDefault.DefaultLockManagerBuilder |
setOwner(String owner) |
LockManagerDefault.DefaultLockManagerBuilder |
setTimeService(TimeService timeService) |
public LockManagerDefault.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 LockManagerDefault.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 LockManagerDefault.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 LockManagerDefault.DefaultLockManagerBuilder setLockRepository(LockRepository lockRepository)
public LockManagerDefault.DefaultLockManagerBuilder setTimeService(TimeService timeService)
public LockManagerDefault.DefaultLockManagerBuilder setOwner(String owner)
public LockManagerDefault.DefaultLockManagerBuilder disableBackGround()
public LockManagerDefault build()
Copyright © 2022. All rights reserved.