public interface SessionLock
ReentrantReadWriteLock
used to manage the lock for a session.
Once a lock is acquired, a callback is registered with the PerthreadManager
to release the lock at the end of the request.Modifier and Type | Method and Description |
---|---|
void |
acquireReadLock()
Acquires the read lock, if the shared read lock, or exclusive write lock, is not already held by this thread.
|
void |
acquireWriteLock()
Acquires the exclusive write lock; may release the (shared) read lock before acquiring the write lock;
this may block for a while.
|
void acquireReadLock()
void acquireWriteLock()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.