Oracle NoSQL Database
version 11gR2.2.0.26

oracle.kv
Class ConsistencyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.kv.FaultException
                  extended by oracle.kv.ConsistencyException
All Implemented Interfaces:
Serializable

public class ConsistencyException
extends FaultException

Thrown when a single or multiple-operation transaction fails because the specified Consistency could not be met, within the allowed timeout period.

The likelihood of this exception being thrown depends on the specified Consistency and the general health of the KVStore system. The default consistency policy (specified by KVStoreConfig.getConsistency()) is Consistency.NONE_REQUIRED. With either Consistency.NONE_REQUIRED (the default) or Consistency.ABSOLUTE, this exception will never be thrown.

If the client overrides the default and specifies a Consistency.Time or Consistency.Version setting, then this exception will be thrown when the specified consistency requirement cannot be satisfied within the timeout period associated with the consistency setting. If this exception is encountered frequently, it indicates that the consistency policy requirements are too strict and cannot be met routinely given the load being placed on the system and the hardware resources that are available to service the load.

Depending on the nature of the application, when this exception is thrown the client may wish to

See Also:
Serialized Form

Method Summary
 Consistency getConsistency()
          Returns the consistency policy that could not be satisfied.
 
Methods inherited from class oracle.kv.FaultException
getFaultClassName, getRemoteStackTrace, toString, wasLoggedRemotely
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getConsistency

public Consistency getConsistency()
Returns the consistency policy that could not be satisfied.


Oracle NoSQL Database
version 11gR2.2.0.26

Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.