@ThreadSafe public class RaftPrimarySelector extends AbstractPrimarySelector
PrimarySelector.Factory
Constructor and Description |
---|
RaftPrimarySelector() |
Modifier and Type | Method and Description |
---|---|
void |
notifyStateChanged(NodeState state)
Notifies leadership state changed.
|
void |
start(InetSocketAddress address)
Starts the primary selector.
|
void |
stop()
Stops the primary selector.
|
getState, getStateUnsafe, onStateChange, setState, waitForState
public void notifyStateChanged(NodeState state)
state
- the leadership statepublic void start(InetSocketAddress address)
PrimarySelector
address
- the address of the local masterpublic void stop()
PrimarySelector
Copyright © 2023. All Rights Reserved.