|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.impl.PointConsistencyPolicy
public class PointConsistencyPolicy
This is used to ensure that the Replica has finished replaying or proceeded past the vlsn specified by the policy. It's like the externally visible CommitPointConsistencyPolicy, except that the latter restricts consistency points to commit vlsns, whereas this policy lets you sync at uncommitted log entries.
Field Summary | |
---|---|
static String |
NAME
The name:"PointConsistencyPolicy" associated with this policy. |
Constructor Summary | |
---|---|
PointConsistencyPolicy(VLSN targetVLSN)
|
|
PointConsistencyPolicy(VLSN targetVLSN,
long timeout,
TimeUnit timeoutUnit)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NAME
Constructor Detail |
---|
public PointConsistencyPolicy(VLSN targetVLSN)
public PointConsistencyPolicy(VLSN targetVLSN, long timeout, TimeUnit timeoutUnit)
Method Detail |
---|
public String getName()
getName
in interface ReplicaConsistencyPolicy
NAME
public void ensureConsistency(EnvironmentImpl replicatorImpl) throws InterruptedException, ReplicaConsistencyException, DatabaseException
ensureConsistency
in interface ReplicaConsistencyPolicy
replicatorImpl
- identifies the replicated environment that must meet
this consistency requirement.
InterruptedException
ReplicaConsistencyException
DatabaseException
public long getTimeout(TimeUnit unit)
ReplicaConsistencyPolicy
ReplicaConsistencyException
is thrown by Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig)
.
getTimeout
in interface ReplicaConsistencyPolicy
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |