org.apache.jackrabbit.core.session
Class SessionRefreshOperation

java.lang.Object
  extended by org.apache.jackrabbit.core.session.SessionRefreshOperation
All Implemented Interfaces:
SessionOperation<Object>

public class SessionRefreshOperation
extends Object
implements SessionOperation<Object>

Operation to refresh the state of a session.


Constructor Summary
SessionRefreshOperation(boolean keepChanges, boolean clusterSync)
          Creates a session refresh operation.
 
Method Summary
 Object perform(SessionContext context)
          Refreshes the session.
 String toString()
          Returns a string representation of this operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionRefreshOperation

public SessionRefreshOperation(boolean keepChanges,
                               boolean clusterSync)
Creates a session refresh operation.

Parameters:
keepChanges - whether to keep transient changes
clusterSync - whether to synchronise with other cluster nodes
Method Detail

perform

public Object perform(SessionContext context)
               throws RepositoryException
Refreshes the session.

Specified by:
perform in interface SessionOperation<Object>
Parameters:
context - component context of this session
Throws:
RepositoryException - if the operation fails

toString

public String toString()
Returns a string representation of this operation.

Overrides:
toString in class Object


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.