| 程序包 | 说明 |
|---|---|
| com.alipay.sofa.jraft | |
| com.alipay.sofa.jraft.core | |
| com.alipay.sofa.jraft.option |
| 限定符和类型 | 方法和说明 |
|---|---|
default boolean |
ReplicatorGroup.addReplicator(PeerId peer,
ReplicatorType replicatorType)
Add a replicator attached with |peer|
will be a notification when the replicator catches up according to the
arguments.
|
boolean |
ReplicatorGroup.addReplicator(PeerId peer,
ReplicatorType replicatorType,
boolean sync)
Try to add a replicator attached with |peer|
will be a notification when the replicator catches up according to the
arguments.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ReplicatorType |
ReplicatorType.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ReplicatorType[] |
ReplicatorType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
ReplicatorGroupImpl.addReplicator(PeerId peer,
ReplicatorType replicatorType,
boolean sync) |
| 限定符和类型 | 方法和说明 |
|---|---|
ReplicatorType |
ReplicatorOptions.getReplicatorType() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ReplicatorOptions.setReplicatorType(ReplicatorType replicatorType) |
| 构造器和说明 |
|---|
ReplicatorOptions(ReplicatorType replicatorType,
int dynamicHeartBeatTimeoutMs,
int electionTimeoutMs,
String groupId,
PeerId serverId,
PeerId peerId,
LogManager logManager,
BallotBox ballotBox,
NodeImpl node,
long term,
SnapshotStorage snapshotStorage,
RaftClientService raftRpcService,
TimerManager timerManager) |
Copyright © 2021. All rights reserved.