@ThreadSafe public class RaftPrimarySelector extends AbstractPrimarySelector
PrimarySelector.Factory, PrimarySelector.State
Constructor and Description |
---|
RaftPrimarySelector() |
Modifier and Type | Method and Description |
---|---|
void |
init(io.atomix.copycat.server.CopycatServer server) |
void |
start(InetSocketAddress address)
Starts the primary selector.
|
void |
stop()
Stops the primary selector.
|
getState, onStateChange, setState, waitForState
public void init(io.atomix.copycat.server.CopycatServer server)
server
- reference to the server backing this selectorpublic 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.