public class OptimisticLockingException extends ConcurrentAccessException
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"/>
Constructor and Description |
---|
OptimisticLockingException(String message) |
isLocal, wrap
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OptimisticLockingException(String message)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html