| java.lang.Object com.sleepycat.je.txn.LockConflict
LockConflict | class LockConflict (Code) | | LockConflict is a type safe enumeration of lock conflict types. Methods on
LockConflict objects are used to determine whether a conflict exists and, if
so, how it should be handled.
|
Method Summary | |
boolean | getAllowed() This method is called first to determine whether the locks is allowed.
If true, there is no conflict. | boolean | getRestart() This method is called when getAllowed returns false to determine whether
an exception should be thrown to cause the requester's operation to be
restarted. |
getAllowed | boolean getAllowed()(Code) | | This method is called first to determine whether the locks is allowed.
If true, there is no conflict. If false, there is a conflict and the
requester must wait for or be denied the lock, or (if getRestart returns
true) an exception should be thrown to cause the requester's operation
to be restarted.
|
getRestart | boolean getRestart()(Code) | | This method is called when getAllowed returns false to determine whether
an exception should be thrown to cause the requester's operation to be
restarted. If getAllowed returns false and this method returns false,
the requester should wait for or be denied the lock, depending on the
request mode. If getAllowed returns true, this method will always
return false.
|
|
|