Class OptimisticLockingException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.eclipse.emf.cdo.util.CommitException
              extended by org.eclipse.emf.cdo.util.ConcurrentAccessException
                  extended by org.eclipse.emf.cdo.util.OptimisticLockingException
All Implemented Interfaces:

public class OptimisticLockingException
extends ConcurrentAccessException

A concurrent 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 also CDOAutoLocker) at commit time.

The optimistic locking timeout can be configured on the server side:

    <property name="optimisticLockingTimeout" value="10000"/>

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
OptimisticLockingException(String message)
Method Summary
Methods inherited from class org.eclipse.emf.cdo.util.CommitException
isLocal, wrap
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


public OptimisticLockingException(String message)

Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.