org.codehaus.activespace.cache
Class OptimisticTransactionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.codehaus.activespace.cache.TransactionException
                  extended byorg.codehaus.activespace.cache.OptimisticTransactionException
All Implemented Interfaces:
Serializable

public class OptimisticTransactionException
extends TransactionException

An exception thrown if a commit() fails due to optimistic transaction failures.

Version:
$Revision: 1.4 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.RuntimeException
 
Constructor Summary
OptimisticTransactionException(javax.cache.Cache cache, Object key, Object updateVersion, Object currentVersion)
           
 
Method Summary
 javax.cache.Cache getCache()
           
 Object getCurrentVersion()
          Returns the current version of the entry
 Object getKey()
           
 Object getUpdateVersion()
          Returns the version at which a change was applied
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OptimisticTransactionException

public OptimisticTransactionException(javax.cache.Cache cache,
                                      Object key,
                                      Object updateVersion,
                                      Object currentVersion)
Method Detail

getCache

public javax.cache.Cache getCache()

getKey

public Object getKey()

getUpdateVersion

public Object getUpdateVersion()
Returns the version at which a change was applied


getCurrentVersion

public Object getCurrentVersion()
Returns the current version of the entry



Copyright © 2004 Protique, Ltd.. All Rights Reserved.