public static class PromotedToLock.Builder extends Object
Modifier and Type | Method and Description |
---|---|
PromotedToLock |
build()
Build the argument block
|
PromotedToLock.Builder |
lockPath(String path)
Set the path for the mutex lock (required)
|
PromotedToLock.Builder |
retryPolicy(RetryPolicy retryPolicy)
Set the retry policy to use when an operation does not succeed
|
PromotedToLock.Builder |
timeout(long maxLockTime,
TimeUnit maxLockTimeUnit)
Set the timeout to use when locking (optional)
|
public PromotedToLock build()
public PromotedToLock.Builder lockPath(String path)
path
- pathpublic PromotedToLock.Builder retryPolicy(RetryPolicy retryPolicy)
retryPolicy
- new policypublic PromotedToLock.Builder timeout(long maxLockTime, TimeUnit maxLockTimeUnit)
maxLockTime
- timemaxLockTimeUnit
- unitCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.