session.lock(); try { doSomething(); } finally { session.unlock(); } This method will block until the lock can be retrieved. {@link #getLockInstance()} can be used if more control over the lockingis required. @see #unlock() @see #getLockInstance() @see #hasLock()
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |