- All Superinterfaces:
SessionProvider
- All Known Subinterfaces:
SessionPool
Returnable session provider.
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.
- Author:
- harald
-
Method Summary
Modifier and TypeMethodDescriptionvoidputSession(Session session) Returns a session to the provider.Methods inherited from interface org.tentackle.session.SessionProvider
getSession
-
Method Details
-
putSession
Returns a session to the provider.Notice: returning a session more than once is allowed.
Returning a closed session will remove it from the provider.- Parameters:
session- the session
-