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() |
CuratorEventType |
getBackgroundEventType()
Most events are delivered by operations themselves, so they know their event types.
|
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()
BackgroundableinBackground in interface Backgroundable<ErrorListenerReconfigBuilderMain>public ErrorListenerReconfigBuilderMain inBackground(Object context)
BackgroundableinBackground in interface Backgroundable<ErrorListenerReconfigBuilderMain>context - context object - will be available from the event sent to the listenerpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback)
BackgroundableinBackground in interface Backgroundable<ErrorListenerReconfigBuilderMain>callback - a functor that will get called when the operation has completedpublic ErrorListenerReconfigBuilderMain inBackground(BackgroundCallback callback, Object context)
BackgroundableinBackground 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)
BackgroundableinBackground 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)
BackgroundableinBackground 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)
ErrorListenerReconfigBuilderMainwithUnhandledErrorListener in interface ErrorListenerReconfigBuilderMainlistener - the listenerpublic StatConfigureEnsembleable withNewMembers(String... server)
MembersablewithNewMembers in interface Membersable<StatConfigureEnsembleable>server - The server joining.public StatConfigureEnsembleable withNewMembers(List<String> servers)
MembersablewithNewMembers in interface Membersable<StatConfigureEnsembleable>servers - The servers joining.public LeaveStatConfigEnsembleable joining(String... server)
Joinablejoining in interface Joinable<LeaveStatConfigEnsembleable>server - The server joining.public LeaveStatConfigEnsembleable joining(List<String> servers)
Joinablejoining in interface Joinable<LeaveStatConfigEnsembleable>servers - The servers joining.public JoinStatConfigEnsembleable leaving(String... server)
Leaveableleaving in interface Leaveable<JoinStatConfigEnsembleable>server - The server idspublic JoinStatConfigEnsembleable leaving(List<String> servers)
Leaveableleaving in interface Leaveable<JoinStatConfigEnsembleable>servers - The server idspublic CuratorEventType getBackgroundEventType()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.