|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReplicaConsistencyPolicy
The interface for Consistency policies used to provide consistency guarantees at a Replica. ReplicaConsistencyPolicies are only used by Berkeley DB JE High Availability.
A transaction initiated at a Replica will wait in
the Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig) method until the
consistency policy is satisfied.
Consistency policies are specified at either a per-transaction level through
TransactionConfig.setConsistencyPolicy(com.sleepycat.je.ReplicaConsistencyPolicy) or as an replication node
wide default through ReplicationConfig.setConsistencyPolicy(com.sleepycat.je.ReplicaConsistencyPolicy)
| Method Summary | |
|---|---|
void |
ensureConsistency(EnvironmentImpl repInstance)
|
String |
getName()
Returns the name used to identify the policy. |
long |
getTimeout(TimeUnit unit)
The timeout associated with the consistency policy. |
| Method Detail |
|---|
void ensureConsistency(EnvironmentImpl repInstance)
throws InterruptedException
repInstance - identifies the replicated environment that must meet
this consistency requirement.
InterruptedExceptionString getName()
long getTimeout(TimeUnit unit)
ReplicaConsistencyException is thrown by Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||