org.hippoecm.hst.core.jcr.pool
Interface PooledSessionRefresher

All Known Implementing Classes:
DefaultPooledSessionRefresher

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 Summary
 void refresh(PooledSession pooledSession, boolean keepChanges)
          Refreshes the pooled session.
 

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.


Copyright © 2008-2012 Hippo. All Rights Reserved.