|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.dbutil.DbLockKeeper
@ThreadSafe public final class DbLockKeeper
Nested Class Summary | |
---|---|
static class |
DbLockKeeper.LockHandle
Handle for a specific lock. |
Method Summary | |
---|---|
static DbLockKeeper |
getInstance()
|
static void |
init(javax.sql.DataSource ds)
Initializes the DbLockKeeper. |
DbLockKeeper.LockHandle |
lock(java.lang.String lockName)
Method should be used to create a lock. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DbLockKeeper getInstance()
public static void init(javax.sql.DataSource ds)
ds
- the datasource used to create the connections.public DbLockKeeper.LockHandle lock(java.lang.String lockName) throws java.lang.Exception
lockName
- the name of the lock
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |