| Package | Description |
|---|---|
| com.alipay.sofa.jraft | |
| com.alipay.sofa.jraft.core | |
| com.alipay.sofa.jraft.option |
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static ReplicatorType |
ReplicatorType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicatorType[] |
ReplicatorType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ReplicatorGroupImpl.addReplicator(PeerId peer,
ReplicatorType replicatorType,
boolean sync) |
| Modifier and Type | Method and Description |
|---|---|
ReplicatorType |
ReplicatorOptions.getReplicatorType() |
| Modifier and Type | Method and Description |
|---|---|
void |
ReplicatorOptions.setReplicatorType(ReplicatorType replicatorType) |
| Constructor and Description |
|---|
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 © 2024. All rights reserved.