public class LockRequest
extends java.lang.Object
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
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.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()
Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.