public class LockPreemptedException extends LockConflictException
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.
Constructor and Description |
---|
LockPreemptedException(com.sleepycat.je.txn.Locker locker,
Throwable cause)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
LockPreemptedException |
wrapSelf(String msg)
For internal use only.
|
getOwnerTxnIds, getTimeoutMillis, getWaiterTxnIds, setOwnerTxnIds, setTimeoutMillis, setWaiterTxnIds
addErrorMessage, addRethrownStackTrace, getMessage, getVersionHeader
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LockPreemptedException(com.sleepycat.je.txn.Locker locker, Throwable cause)
public LockPreemptedException wrapSelf(String msg)
wrapSelf
in class OperationFailureException
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.