public interface ExclusiveSessionProvider
Provides exclusive access to a certain session. Once a session is requested, it cannot be requested by any other thread until it is released. If a thread requests a session more than once, it must release it the appropriate number of times until it gets released.
Notice the difference to the ReturnableSessionProvider, which provides
access to a pool of sessions.
| Modifier and Type | Method and Description |
|---|---|
boolean |
releaseSession(Session session)
Releases the session.
|
Session |
requestSession()
Requests a session for exclusive use.
|
Tentackle - distributed, domain- and model-driven