|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.db.store.Lock
public final class Lock
Locking for tables/etc.
| Constructor Summary | |
|---|---|
Lock(java.lang.String id)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getId()
Returns the lock identifier. |
boolean |
lockReadAndWriteNoWait()
Tries to get a write lock, but does not wait if other threads are reading or writing. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Lock(java.lang.String id)
| Method Detail |
|---|
public java.lang.String getId()
public boolean lockReadAndWriteNoWait()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||