org.apache.geronimo.clustering.wadi
Class WADISessionAdaptor

java.lang.Object
  extended by org.apache.geronimo.clustering.wadi.WADISessionAdaptor
All Implemented Interfaces:
Session

public class WADISessionAdaptor
extends Object
implements Session


Constructor Summary
WADISessionAdaptor(org.codehaus.wadi.core.session.Session session)
           
 
Method Summary
 Object addState(String key, Object value)
          Map like contract to manipulate state information.
 String getSessionId()
          Gets the sessionId.
 Map getState()
          Map like contract to manipulate state information.
 Object getState(String key)
          Map like contract to manipulate state information.
 void onEndAccess()
          Notifies the session that state accesses are now completed.
 void release()
          Releases the session.
 Object removeState(String key)
          Map like contract to manipulate state information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WADISessionAdaptor

public WADISessionAdaptor(org.codehaus.wadi.core.session.Session session)
Method Detail

getSessionId

public String getSessionId()
Description copied from interface: Session
Gets the sessionId.

Specified by:
getSessionId in interface Session
Returns:
sessionId.

release

public void release()
Description copied from interface: Session
Releases the session.

When a Session is released, it is released from the underlying set of SessionManagers. In other words, its sessionId is unknown and its state is permanently lost. After the release of a Session, the behavior of the other methods is undefined.

Specified by:
release in interface Session

addState

public Object addState(String key,
                       Object value)
Description copied from interface: Session
Map like contract to manipulate state information.

Specified by:
addState in interface Session

getState

public Object getState(String key)
Description copied from interface: Session
Map like contract to manipulate state information.

Specified by:
getState in interface Session

removeState

public Object removeState(String key)
Description copied from interface: Session
Map like contract to manipulate state information.

Specified by:
removeState in interface Session

getState

public Map getState()
Description copied from interface: Session
Map like contract to manipulate state information.

The returned Map is mutable and is backed by the session.

Specified by:
getState in interface Session

onEndAccess

public void onEndAccess()
Description copied from interface: Session
Notifies the session that state accesses are now completed.

When state accesses end, the underlying local SessionManager may decide to replicate synchronously or asynchronously the current state to remote SessionManagers.

Specified by:
onEndAccess in interface Session


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.