|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sleepycat.je.DatabaseException
com.sleepycat.je.OperationFailureException
com.sleepycat.je.LockConflictException
com.sleepycat.je.rep.LockPreemptedException
public class LockPreemptedException
Thrown when a lock has been "stolen", or preempted, from a transaction in a replicated environment.
The Transaction
handle is invalidated as a
result of this exception.
Locks may be preempted in a JE HA environment on a Replica system when the HA write operation needs a lock that an application reader transaction or cursor holds. This exception is thrown by a reader transaction or cursor method that is called after a lock has been preempted.
Normally, applications should catch the base class LockConflictException
rather than catching one of its subclasses. All lock
conflicts are typically handled in the same way, which is normally to abort
and retry the transaction. See LockConflictException
for more
information.
Method Summary |
---|
Methods inherited from class com.sleepycat.je.LockConflictException |
---|
getOwnerTxnIds, getWaiterTxnIds |
Methods inherited from class com.sleepycat.je.DatabaseException |
---|
getMessage |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |