org.quartz.impl.jdbcjobstore
| |||||||||||||||||||||||||||||||||||||||||
| Method Summary | |
|---|---|
boolean |
isLockOwner(Connection conn,
String lockName)
Determine whether the calling thread owns a lock on the identified resource. |
boolean |
obtainLock(Connection conn,
String lockName)
Grants a lock on the identified resource to the calling thread (blocking until it is available). |
void |
releaseLock(Connection conn,
String lockName)
Release the lock on the identified resource if it is held by the calling thread. |
boolean |
requiresConnection()
Whether this Semaphore implementation requires a database connection for its lock management operations. |
| Method Detail |
|---|
boolean obtainLock(Connection conn, String lockName) throws LockException
conn - Database connection used to establish lock. Can be null if
requiresConnection() returns false.
LockExceptionvoid releaseLock(Connection conn, String lockName) throws LockException
conn - Database connection used to establish lock. Can be null if
requiresConnection() returns false.
LockExceptionboolean isLockOwner(Connection conn, String lockName) throws LockException
conn - Database connection used to establish lock. Can be null if
requiresConnection() returns false.
LockExceptionboolean requiresConnection()
|
Quartz Enterprise Job Scheduler Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||