public class PointConsistencyPolicy extends Object implements ReplicaConsistencyPolicy
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
The name:"PointConsistencyPolicy" associated with this policy.
|
| Constructor and Description |
|---|
PointConsistencyPolicy(VLSN targetVLSN) |
PointConsistencyPolicy(VLSN targetVLSN,
long timeout,
TimeUnit timeoutUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureConsistency(EnvironmentImpl replicatorImpl)
Ensures that the replica has replayed the replication stream to the
point identified by the commit token.
|
boolean |
equals(Object obj) |
String |
getName()
Returns the name:"PointConsistencyPolicy", associated with this policy.
|
long |
getTimeout(TimeUnit unit)
The timeout associated with the consistency policy.
|
int |
hashCode() |
String |
toString() |
public static final String NAME
public PointConsistencyPolicy(VLSN targetVLSN)
public String getName()
getName in interface ReplicaConsistencyPolicyNAMEpublic void ensureConsistency(EnvironmentImpl replicatorImpl) throws InterruptedException, ReplicaConsistencyException, DatabaseException
ensureConsistency in interface ReplicaConsistencyPolicyreplicatorImpl - identifies the replicated environment that must meet
this consistency requirement.InterruptedExceptionReplicaConsistencyExceptionDatabaseExceptionpublic long getTimeout(TimeUnit unit)
ReplicaConsistencyPolicyReplicaConsistencyException is thrown by Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig).getTimeout in interface ReplicaConsistencyPolicyCopyright © 2024. All rights reserved.