|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Locks are created by the TransactionManager
and used by the core
to manage concurrent access to the same containers/objects. There are several
Lock implementations that provide different policies.
Field Summary | |
static int |
LEVEL_MAX
|
static int |
LEVEL_NONE
|
static int |
LEVEL_READ
|
static int |
LEVEL_UPGRADE
|
static int |
LEVEL_WRITE
|
static int |
NOT_ACQUIRED
|
Method Summary | |
void |
checkDeadlock(Transaction ta)
Check for deadlock and throw an exception if a deadlock is detected. |
boolean |
isAcquiredBy(Transaction ta)
|
int |
level(Transaction ta)
Returns the lock level for the specified transaction. |
DxCollection |
lockerIDs()
Return all transactions that currently hold this lock. |
void |
release(Transaction ta)
Release the previously aquired lock. |
void |
reset()
|
int |
tryAcquire(Transaction ta,
int level)
Try to aquire this lock. |
Field Detail |
public static final int NOT_ACQUIRED
public static final int LEVEL_NONE
public static final int LEVEL_READ
public static final int LEVEL_UPGRADE
public static final int LEVEL_WRITE
public static final int LEVEL_MAX
Method Detail |
public void reset()
public void checkDeadlock(Transaction ta) throws TransactionError
TransactionError
public int tryAcquire(Transaction ta, int level)
public void release(Transaction ta)
public boolean isAcquiredBy(Transaction ta)
public DxCollection lockerIDs()
public int level(Transaction ta)
ta
- The transaction that has acquired the lock or null.
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |