Interface PooledSessionRefresher


  • public interface PooledSessionRefresher
    PooledSessionRefresher This interface is responsible for refreshing the states of the pooled session. For example, if a pooled session refresher can simply invoke javax.jcr.Session#refresh();. Or, a custom implementation can do something in more optimized way in order to clean the virtual states only.
    Version:
    $Id$
    • Method Detail

      • refresh

        void refresh​(PooledSession pooledSession,
                     boolean keepChanges)
              throws javax.jcr.RepositoryException
        Refreshes the pooled session. This can make the pooled session refreshed or a custom implementation can do something in more optimized way in order to clean the virtual states only.
        Parameters:
        pooledSession - a pooled session
        keepChanges - a boolean
        Throws:
        javax.jcr.RepositoryException - if an error occurs.