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()
Get how Ketch should apply committed changes.
|
KetchReplica.CommitSpeed |
getCommitSpeed()
Get how quickly should Ketch commit.
|
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()
Get participation of the replica in the system.
|
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 © 2019 Eclipse JGit Project. All rights reserved.