Package org.eclipse.emf.cdo.util
Class OptimisticLockingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.emf.cdo.util.CommitException
-
- org.eclipse.emf.cdo.util.ConcurrentAccessException
-
- org.eclipse.emf.cdo.util.OptimisticLockingException
-
- All Implemented Interfaces:
java.io.Serializable
public class OptimisticLockingException extends ConcurrentAccessException
Aconcurrent access exception
that indicates that the repository can not acquire optimistic locks for some of the locally modified objects.It's usually possible and adequate to attempt to commit the transaction again (optimistic strategy). Pessimistic
locks
can help to avoid the problematic situation (see alsoCDOAutoLocker
) at commit time.The optimistic locking timeout can be configured on the server side:
<property name="optimisticLockingTimeout" value="10000"/>
- Since:
- 4.2
- Author:
- Eike Stepper
- See Also:
- Serialized Form
- No Extend
- This interface is not intended to be extended by clients.
- No Instantiate
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description OptimisticLockingException(java.lang.String message)
-
Method Summary
-
Methods inherited from class org.eclipse.emf.cdo.util.CommitException
isLocal, wrap
-
-