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