Class PromotedToLock.Builder
java.lang.Object
org.apache.curator.framework.recipes.atomic.PromotedToLock.Builder
- Enclosing class:
PromotedToLock
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the argument blockSet the path for the mutex lock (required)retryPolicy
(RetryPolicy retryPolicy) Set the retry policy to use when an operation does not succeedSet the timeout to use when locking (optional)
-
Method Details
-
build
Build the argument block- Returns:
- new block
-
lockPath
Set the path for the mutex lock (required)- Parameters:
path
- path- Returns:
- this
-
retryPolicy
Set the retry policy to use when an operation does not succeed- Parameters:
retryPolicy
- new policy- Returns:
- this
-
timeout
Set the timeout to use when locking (optional)- Parameters:
maxLockTime
- timemaxLockTimeUnit
- unit- Returns:
- this
-