-
- All Superinterfaces:
SessionProvider
- All Known Subinterfaces:
SessionPool
public interface ReturnableSessionProvider extends SessionProvider
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidputSession(Session session)Returns a session to the provider.-
Methods inherited from interface org.tentackle.session.SessionProvider
getSession
-
-
-
-
Method Detail
-
putSession
void putSession(Session session)
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
-
-