public static class PromotedToLock.Builder
extends java.lang.Object
| Modifier and Type | Method | 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(org.apache.curator.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(org.apache.curator.RetryPolicy retryPolicy)
retryPolicy - new policypublic PromotedToLock.Builder timeout(long maxLockTime, java.util.concurrent.TimeUnit maxLockTimeUnit)
maxLockTime - timemaxLockTimeUnit - unitCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.