| 程序包 | 说明 |
|---|---|
| org.apache.ratis.server |
| 限定符和类型 | 方法和说明 |
|---|---|
static RaftServer.Builder |
RaftServer.newBuilder() |
RaftServer.Builder |
RaftServer.Builder.setGroup(RaftGroup group)
Set all the peers (including the server being built) in the Raft cluster.
|
RaftServer.Builder |
RaftServer.Builder.setOption(RaftStorage.StartupOption option)
Set the startup option for the group.
|
RaftServer.Builder |
RaftServer.Builder.setParameters(Parameters parameters)
Set
Parameters. |
RaftServer.Builder |
RaftServer.Builder.setProperties(RaftProperties properties)
Set
RaftProperties. |
RaftServer.Builder |
RaftServer.Builder.setServerId(RaftPeerId serverId)
Set the server ID.
|
RaftServer.Builder |
RaftServer.Builder.setStateMachine(StateMachine stateMachine)
Set the
StateMachine of the server. |
RaftServer.Builder |
RaftServer.Builder.setStateMachineRegistry(StateMachine.Registry stateMachineRegistry)
Set the
StateMachine.Registry of the server. |
RaftServer.Builder |
RaftServer.Builder.setThreadGroup(ThreadGroup threadGroup)
Set
ThreadGroup so the application can control RaftServer threads consistently with the application. |
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.