org.codehaus.activespace.cache
Class OptimisticTransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codehaus.activespace.cache.TransactionException
org.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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
OptimisticTransactionException
public OptimisticTransactionException(javax.cache.Cache cache,
Object key,
Object updateVersion,
Object currentVersion)
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.