public class InsufficientReplicasException extends OperationFailureException
Transaction.commit()when these operations are initiated at a Master which is not in contact with a quorum of Replicas as determined by the
Durability.ReplicaAckPolicythat is in effect for the operation.
|Constructor and Description|
Creates a Commit exception.
|Modifier and Type||Method and Description|
Returns the set of Replicas that were in contact with the master at the time of the commit operation.
Returns the Replica ack policy that was in effect for the transaction.
Returns the number of nodes (including the master) that were required to be active in order to satisfy the Replica ack policy.
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InsufficientReplicasException(com.sleepycat.je.txn.Locker locker, Durability.ReplicaAckPolicy ackPolicy, int requiredAckCount, java.util.Set<java.lang.String> availableReplicas)
ackPolicy- the ack policy that could not be implemented
requiredAckCount- the replica acks required to satisfy the policy
availableReplicas- the set of available Replicas
public Durability.ReplicaAckPolicy getCommitPolicy()
public int getRequiredNodeCount()
public java.util.Set<java.lang.String> getAvailableReplicas()
Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.