public class ReconfigBuilderImpl extends Object implements ReconfigBuilder, ErrorListenerReconfigBuilderMain
Constructor and Description |
---|
ReconfigBuilderImpl(CuratorFrameworkImpl client) |
ReconfigBuilderImpl(CuratorFrameworkImpl client,
Backgrounding backgrounding,
org.apache.zookeeper.data.Stat responseStat,
long fromConfig,
List<String> newMembers,
List<String> joining,
List<String> leaving) |
Modifier and Type | Method and Description |
---|---|
byte[] |
forEnsemble() |
ErrorListenerReconfigBuilderMain |
inBackground()
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(BackgroundCallback callback)
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(BackgroundCallback callback,
Executor executor)
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(BackgroundCallback callback,
Object context)
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(BackgroundCallback callback,
Object context,
Executor executor)
Perform the action in the background
|
ErrorListenerReconfigBuilderMain |
inBackground(Object context)
Perform the action in the background
|
LeaveStatConfigEnsembleable |
joining(List<String> servers)
Adds one or more servers to joining the ensemble.
|
LeaveStatConfigEnsembleable |
joining(String... server)
Adds one or more servers to joining the ensemble.
|
JoinStatConfigEnsembleable |
leaving(List<String> servers)
Sets one or more servers to leaving the ensemble.
|
JoinStatConfigEnsembleable |
leaving(String... server)
Sets one or more servers to leaving the ensemble.
|
void |
performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<Void> data) |
StatConfigureEnsembleable |
withNewMembers(List<String> servers)
Sets one or more members that are meant to be the ensemble.
|
StatConfigureEnsembleable |
withNewMembers(String... server)
Sets one or more members that are meant to be the ensemble.
|
ReconfigBuilderMain |
withUnhandledErrorListener(UnhandledErrorListener listener)
Set an error listener for this background operation.
|
public ReconfigBuilderImpl(CuratorFrameworkImpl client)
public ReconfigBuilderImpl(CuratorFrameworkImpl client, Backgrounding backgrounding, org.apache.zookeeper.data.Stat responseStat, long fromConfig, List<String> newMembers, List<String> joining, List<String> leaving)
public ErrorListenerReconfigBuilderMain inBackground()
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerReconfigBuilderMain>
public ErrorListenerReconfigBuilderMain inBackground(Object context)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerReconfigBuilderMain>
context
- context object - will be available from the event sent to the listenerpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerReconfigBuilderMain>
callback
- a functor that will get called when the operation has completedpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback, Object context)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerReconfigBuilderMain>
callback
- a functor that will get called when the operation has completedcontext
- context object - will be available from the event sent to the listenerpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback, Executor executor)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerReconfigBuilderMain>
callback
- a functor that will get called when the operation has completedexecutor
- executor to use for the background callpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback, Object context, Executor executor)
Backgroundable
inBackground
in interface Backgroundable<ErrorListenerReconfigBuilderMain>
callback
- a functor that will get called when the operation has completedcontext
- context object - will be available from the event sent to the listenerexecutor
- executor to use for the background callpublic ReconfigBuilderMain withUnhandledErrorListener(UnhandledErrorListener listener)
ErrorListenerReconfigBuilderMain
withUnhandledErrorListener
in interface ErrorListenerReconfigBuilderMain
listener
- the listenerpublic StatConfigureEnsembleable withNewMembers(String... server)
Membersable
withNewMembers
in interface Membersable<StatConfigureEnsembleable>
server
- The server joining.public StatConfigureEnsembleable withNewMembers(List<String> servers)
Membersable
withNewMembers
in interface Membersable<StatConfigureEnsembleable>
servers
- The servers joining.public LeaveStatConfigEnsembleable joining(String... server)
Joinable
joining
in interface Joinable<LeaveStatConfigEnsembleable>
server
- The server joining.public LeaveStatConfigEnsembleable joining(List<String> servers)
Joinable
joining
in interface Joinable<LeaveStatConfigEnsembleable>
servers
- The servers joining.public JoinStatConfigEnsembleable leaving(String... server)
Leaveable
leaving
in interface Leaveable<JoinStatConfigEnsembleable>
server
- The server idspublic JoinStatConfigEnsembleable leaving(List<String> servers)
Leaveable
leaving
in interface Leaveable<JoinStatConfigEnsembleable>
servers
- The server idsCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.