public class ReplicaConfig extends Object
KetchReplica
.Constructor and Description |
---|
ReplicaConfig() |
Modifier and Type | Method and Description |
---|---|
ReplicaConfig |
fromConfig(Config cfg,
String name)
Update the configuration from a config block.
|
KetchReplica.CommitMethod |
getCommitMethod() |
KetchReplica.CommitSpeed |
getCommitSpeed() |
long |
getMaxRetry(TimeUnit unit)
Returns the maximum wait delay before retrying a failure.
|
long |
getMinRetry(TimeUnit unit)
Returns the minimum wait delay before retrying a failure.
|
KetchReplica.Participation |
getParticipation() |
static ReplicaConfig |
newFromConfig(Config cfg,
String name)
Read a configuration from a config block.
|
public static ReplicaConfig newFromConfig(Config cfg, String name)
cfg
- configuration to read.name
- of the replica being configured.name
.public KetchReplica.Participation getParticipation()
public KetchReplica.CommitMethod getCommitMethod()
public KetchReplica.CommitSpeed getCommitSpeed()
public long getMinRetry(TimeUnit unit)
unit
- to get retry delay in.public long getMaxRetry(TimeUnit unit)
unit
- to get retry delay in.public ReplicaConfig fromConfig(Config cfg, String name)
cfg
- configuration to read.name
- of the replica being configured.this
Copyright © 2017 Eclipse JGit Project. All rights reserved.