Package org.hippoecm.hst.core.jcr.pool
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 Summary
Modifier and TypeMethodDescriptionvoid
refresh
(PooledSession pooledSession, boolean keepChanges) Refreshes the pooled session.
-
Method Details
-
refresh
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 sessionkeepChanges
- a boolean- Throws:
RepositoryException
- if an error occurs.
-