public interface ReturnableSessionProvider extends SessionProvider
Provides exclusive access to returnable sessions.
Used to lease sessions for a certain time and the release them again.
Used by session pools, for example.
Notice the difference to the ExclusiveSessionProvider, which provides
access to a certain session.
| Modifier and Type | Method and Description |
|---|---|
void |
putSession(Session session)
Returns a session to the provider.
|
getSessionvoid putSession(Session session)
Notice: returning a session more than once is allowed.
Returning a closed session will remove it from the provider.
session - the sessionTentackle - distributed, domain- and model-driven