public static class PromotedToLock.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
PromotedToLock |
build()
Build the argument block
|
PromotedToLock.Builder |
lockPath(java.lang.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,
java.util.concurrent.TimeUnit maxLockTimeUnit)
Set the timeout to use when locking (optional)
|
public PromotedToLock build()
public PromotedToLock.Builder lockPath(java.lang.String path)
path
- pathpublic PromotedToLock.Builder retryPolicy(RetryPolicy retryPolicy)
retryPolicy
- new policypublic PromotedToLock.Builder timeout(long maxLockTime, java.util.concurrent.TimeUnit maxLockTimeUnit)
maxLockTime
- timemaxLockTimeUnit
- unit