public class NoConsistencyRequiredPolicy extends java.lang.Object implements ReplicaConsistencyPolicy
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)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
The name:"NoConsistencyRequiredPolicy" associated with this policy.
|
static NoConsistencyRequiredPolicy |
NO_CONSISTENCY
Convenience instance.
|
Constructor and Description |
---|
NoConsistencyRequiredPolicy()
Create a NoConsistencyRequiredPolicy.
|
Modifier and Type | Method and Description |
---|---|
void |
ensureConsistency(com.sleepycat.je.dbi.EnvironmentImpl repInstance) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name:"NoConsistencyRequiredPolicy", associated with this policy.
|
long |
getTimeout(java.util.concurrent.TimeUnit unit)
Always returns 0, no timeout is needed for this policy.
|
int |
hashCode() |
public static final java.lang.String NAME
public static final NoConsistencyRequiredPolicy NO_CONSISTENCY
public NoConsistencyRequiredPolicy()
public java.lang.String getName()
getName
in interface ReplicaConsistencyPolicy
NAME
public void ensureConsistency(com.sleepycat.je.dbi.EnvironmentImpl repInstance)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public long getTimeout(java.util.concurrent.TimeUnit unit)
getTimeout
in interface ReplicaConsistencyPolicy
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.