Interface ReturnableSessionProvider

  • 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 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