public static class CuratorPersister.Builder
extends java.lang.Object
CuratorPersister instances.| Modifier and Type | Method and Description |
|---|---|
CuratorPersister |
build()
Returns a new
CuratorPersister instance using the provided settings, using reasonable defaults where
custom values were not specified. |
CuratorPersister.Builder |
setCredentials(java.lang.String username,
java.lang.String password)
Assigns credentials to be used when contacting ZK.
|
CuratorPersister.Builder |
setRetryPolicy(RetryPolicy retryPolicy)
Assigns a custom retry policy for the ZK server.
|
public CuratorPersister.Builder setRetryPolicy(RetryPolicy retryPolicy)
retryPolicy - The custom RetryPolicypublic CuratorPersister.Builder setCredentials(java.lang.String username, java.lang.String password)
username - The ZK usernamepassword - The ZK passwordpublic CuratorPersister build()
CuratorPersister instance using the provided settings, using reasonable defaults where
custom values were not specified.