|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sleepycat.db.DbLockRequest
The DbLockRequest object is used to encapsulate a single lock request.
Constructor Summary | |
DbLockRequest(int op,
int mode,
Dbt obj,
DbLock lock)
The DbLockRequest constructor constructs a DbLockRequest with the specified operation, mode and lock, for the specified object. |
|
DbLockRequest(int op,
int mode,
Dbt obj,
DbLock lock,
int timeout)
The DbLockRequest constructor constructs a DbLockRequest with the specified operation, mode, lock and timeout for the specified object. |
Method Summary | |
DbLock |
get_lock()
Deprecated. As of Berkeley DB 4.2, replaced by getLock() |
int |
get_mode()
Deprecated. As of Berkeley DB 4.2, replaced by getMode() |
Dbt |
get_obj()
Deprecated. As of Berkeley DB 4.2, replaced by getObj() |
int |
get_op()
Deprecated. As of Berkeley DB 4.2, replaced by getOp() |
DbLock |
getLock()
The DbLockRequest.getLock method returns the lock reference. |
int |
getMode()
The DbLockRequest.getMode method returns the lock mode. |
Dbt |
getObj()
The DbLockRequest.getObj method returns the object protected by this lock. |
int |
getOp()
The DbLockRequest.getOp method returns the operation. |
int |
getTimeout()
The DbLockRequest.getTimeout method returns the lock timeout value. |
void |
set_lock(DbLock lock)
Deprecated. As of Berkeley DB 4.2, replaced by setLock(DbLock) |
void |
set_mode(int mode)
Deprecated. As of Berkeley DB 4.2, replaced by setMode(int) |
void |
set_obj(Dbt obj)
Deprecated. As of Berkeley DB 4.2, replaced by setObj(Dbt) |
void |
set_op(int op)
Deprecated. As of Berkeley DB 4.2, replaced by setOp(int) |
void |
setLock(DbLock lock)
The DbLockRequest.setLock method sets the lock reference. |
void |
setMode(int mode)
The DbLockRequest.setMode method sets the lock mode. |
void |
setObj(Dbt obj)
The DbLockRequest.setObj method sets the lock object. |
void |
setOp(int op)
The DbLockRequest.setOp method sets the operation. |
void |
setTimeout(int timeout)
The DbLockRequest.setTimeout method sets the lock timeout value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DbLockRequest(int op, int mode, Dbt obj, DbLock lock)
lock
- the lock type for the object.mode
- the permissions mode for the object.obj
- the object being locked.op
- The op parameter operation being performed.public DbLockRequest(int op, int mode, Dbt obj, DbLock 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(DbLock lock)
lock
- the lock reference.public void setMode(int mode)
mode
- the lock mode.public void setObj(Dbt obj)
obj
- the lock object.public void setOp(int op)
op
- the operation.public void setTimeout(int timeout)
timeout
- the lock timeout value.public void set_lock(DbLock lock)
setLock(DbLock)
public void set_mode(int mode)
setMode(int)
public void set_obj(Dbt obj)
setObj(Dbt)
public void set_op(int op)
setOp(int)
public DbLock getLock()
public int getMode()
public Dbt getObj()
public int getOp()
public int getTimeout()
public DbLock get_lock()
getLock()
public int get_mode()
getMode()
public Dbt get_obj()
getObj()
public int get_op()
getOp()
|
Berkeley DB version 4.2.52 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |