|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILockSessionFactory
A lock session factory is the root to create and configure new lock sessions. The implementation of the lock session factory should be thread safe. A lock session factory must definitely not create sessions which are robust against all sorts of evil code, for example creating two lock sessions for the same thread and locking over them the same lock key.
Method Summary | |
---|---|
ILockSession |
getActiveThreadSharedSession(boolean allowCreate)
Returns an active lock session for the current thread, if there exists one (a call to getActiveThreadSharedSession(true) was done before). |
ILockSession |
openNewLockSession()
Creates and configures a fresh new lock session and returns it. |
void |
release()
Releases the lock session factory. |
Method Detail |
---|
ILockSession openNewLockSession()
ILockSession getActiveThreadSharedSession(boolean allowCreate)
allowCreate
- true or false.
void release()
DisposableBean.destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |