|
Berkeley DB version 5.2.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.db.LockRequest
public class LockRequest
The LockRequest object is used to encapsulate a single lock request.
Constructor Summary | |
---|---|
LockRequest(LockOperation op,
LockRequestMode mode,
DatabaseEntry obj)
Construct a LockRequest with the specified operation and mode for the specified object. |
|
LockRequest(LockOperation op,
LockRequestMode mode,
DatabaseEntry obj,
Lock lock)
Construct a LockRequest with the specified operation, mode and lock, for the specified object. |
|
LockRequest(LockOperation op,
LockRequestMode mode,
DatabaseEntry obj,
Lock lock,
int timeout)
Construct a LockRequest with the specified operation, mode, lock and timeout for the specified object. |
Method Summary | |
---|---|
Lock |
getLock()
Return the lock reference. |
LockRequestMode |
getMode()
Return the lock mode. |
DatabaseEntry |
getObj()
Return the lock object. |
LockOperation |
getOp()
Return the lock operation. |
int |
getTimeout()
Return the lock timeout value. |
void |
setLock(Lock lock)
Set the lock reference. |
void |
setMode(LockRequestMode mode)
Set the lock mode. |
void |
setObj(DatabaseEntry obj)
Set the lock object. |
void |
setOp(LockOperation op)
Set the operation. |
void |
setTimeout(int timeout)
Set the lock timeout value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockRequest(LockOperation op, LockRequestMode mode, DatabaseEntry obj)
mode
- The permissions mode for the object.
obj
- The object being locked.
op
- The operation being performed.public LockRequest(LockOperation op, LockRequestMode mode, DatabaseEntry obj, Lock lock)
mode
- The permissions mode for the object.
obj
- The object being locked.
op
- The operation being performed.
lock
- The lock type for the object.public LockRequest(LockOperation op, LockRequestMode mode, DatabaseEntry obj, Lock lock, int timeout)
lock
- The lock type for the object.
mode
- The permissions mode for the object.
obj
- The object being locked.
op
- The operation being performed.
timeout
- The timeout value for the lock.Method Detail |
---|
public void setLock(Lock lock)
lock
- The lock reference.public void setMode(LockRequestMode mode)
mode
- the lock mode.public void setObj(DatabaseEntry obj)
obj
- The lock object.public void setOp(LockOperation op)
op
- The operation.public void setTimeout(int timeout)
timeout
- The lock timeout value.public Lock getLock()
public LockRequestMode getMode()
public DatabaseEntry getObj()
public LockOperation getOp()
public int getTimeout()
|
Berkeley DB version 5.2.28 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |