| Package | Description |
|---|---|
| com.sleepycat.je |
Foundation for creating environments, databases and transactions; provides
cursor based data access.
|
| com.sleepycat.je.rep |
Berkeley DB Java Edition High Availability (JE HA) enables replication of JE
environments.
|
| com.sleepycat.je.rep.arbitration |
INTERNAL: Manages the designated primary of a two-node group -- this is
NOT the
arbiter node. |
| com.sleepycat.je.rep.impl.node |
INTERNAL: Feeder and Replica node implementations.
|
| Modifier and Type | Method and Description |
|---|---|
Durability.ReplicaAckPolicy |
Durability.getReplicaAck()
Returns the replica acknowledgment policy used by the master when
committing changes to a replicated environment.
|
static Durability.ReplicaAckPolicy |
Durability.ReplicaAckPolicy.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Durability.ReplicaAckPolicy[] |
Durability.ReplicaAckPolicy.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
Durability(Durability.SyncPolicy localSync,
Durability.SyncPolicy replicaSync,
Durability.ReplicaAckPolicy replicaAck)
Creates an instance of a Durability specification.
|
| Modifier and Type | Method and Description |
|---|---|
Durability.ReplicaAckPolicy |
InsufficientReplicasException.getCommitPolicy()
Returns the Replica ack policy that was in effect for the transaction.
|
| Constructor and Description |
|---|
InsufficientReplicasException(Locker locker,
Durability.ReplicaAckPolicy ackPolicy,
int requiredAckCount,
Set<String> availableReplicas)
Creates a Commit exception.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ArbiterProvider.getAckCount(Durability.ReplicaAckPolicy ackPolicy)
Return the durability quorum size that is dictated by arbitration, for
this replica ack policy.
|
int |
DesignatedPrimaryProvider.getAckCount(Durability.ReplicaAckPolicy ackPolicy)
Always returns 0, no replica acks are needed when acting under
designated primary arbitration.
|
int |
Arbiter.getAckCount(Durability.ReplicaAckPolicy ackPolicy)
Return the arbitration-influenced durability quorum size.
|
boolean |
Arbiter.isApplicable(Durability.ReplicaAckPolicy ackPolicy)
Return true if this node is in active arbitration, and if arbitration
should take precedence over the durability quorum policy.
|
| Modifier and Type | Method and Description |
|---|---|
int |
DurabilityQuorum.getCurrentRequiredAckCount(Durability.ReplicaAckPolicy ackPolicy)
Returns the minimum number of acknowledgments required to satisfy the
ReplicaAckPolicy for a given group size.
|
Copyright © 2024. All rights reserved.