-
- All Known Subinterfaces:
ModificationTracker
public interface ExclusiveSessionProviderAn exclusive session provider.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.- Author:
- harald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanreleaseSession(Session session)Releases the session.SessionrequestSession()Requests a session for exclusive use.
-