public class DurabilityException extends FaultException
Durability.ReplicaAckPolicywas not available.
The likelihood of this exception being thrown depends on the number of
nodes per replication group, the rate of node failures and how quickly a
failed node is restored to operation, and the specified
ReplicaAckPolicy for the default durability
policy (specified by
this exception is thrown only when the majority of nodes in a replication
group are unavailable, and in a well-maintained KVStore system with at least
three nodes per replication group this exception should rarely be
If the client overrides the default and specifies
Durability.ReplicaAckPolicy.ALL, then this exception will be thrown when
any node in a replication group is unavailable; in other words, it is much
more likely to be thrown. If the client specifies
Durability.ReplicaAckPolicy.NONE, then this exception will never be
When this exception is thrown the KVStore service will perform administrative notifications so that actions can be taken to correct the problem. Depending on the nature of the application, the client may wish to
|Modifier and Type||Method and Description|
Returns the set of Replicas that were available at the time of the operation.
Returns the Replica ack policy that was in effect for the operation.
Returns the number of nodes that were required to be active in order to satisfy the Replica ack policy associated with the operation.
getFaultClassName, getRemoteStackTrace, toString, wasLoggedRemotely
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public Durability.ReplicaAckPolicy getCommitPolicy()
public int getRequiredNodeCount()
Copyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.