org.codehaus.wadi.impl
Class AtomicallyReplicableSession

java.lang.Object
  extended byorg.codehaus.wadi.impl.SimpleEvictable
      extended byorg.codehaus.wadi.impl.AbstractMotable
          extended byorg.codehaus.wadi.impl.AbstractContext
              extended byorg.codehaus.wadi.impl.StandardSession
                  extended byorg.codehaus.wadi.impl.DistributableSession
                      extended byorg.codehaus.wadi.impl.AbstractReplicableSession
                          extended byorg.codehaus.wadi.impl.AtomicallyReplicableSession
All Implemented Interfaces:
AttributesConfig, Config, Context, DistributableAttributesConfig, Evictable, Motable, RWLockListener, Serializable, SerializableContent, Session, WADIHttpSession

public class AtomicallyReplicableSession
extends AbstractReplicableSession

See Also:
Serialized Form

Field Summary
protected  boolean _dirty
           
protected  Replicater _replicater
           
protected  org.codehaus.wadi.impl.AtomicallyReplicableSession.Semantics _semantics
           
 
Fields inherited from class org.codehaus.wadi.impl.StandardSession
_attributes, _config, _emptyEnumeration, _emptyStringArray, _httpSessionEvent, _log, _wrapper
 
Fields inherited from class org.codehaus.wadi.impl.AbstractContext
_lock
 
Fields inherited from class org.codehaus.wadi.impl.AbstractMotable
_name
 
Fields inherited from class org.codehaus.wadi.impl.SimpleEvictable
_creationTime, _lastAccessedTime, _maxInactiveInterval
 
Constructor Summary
AtomicallyReplicableSession(ReplicableSessionConfig config)
           
 
Method Summary
 Object getAttribute(String name)
           
 void readEnded()
           
 Object removeAttribute(String name)
           
 Object setAttribute(String name, Object value)
           
 void setMaxInactiveInterval(int maxInactiveInterval)
           
 
Methods inherited from class org.codehaus.wadi.impl.AbstractReplicableSession
copy, destroy, destroy, init, init2, mote
 
Methods inherited from class org.codehaus.wadi.impl.DistributableSession
findHelper, getBodyAsByteArray, getHttpSessionAttributeListenersRegistered, getListenerNames, getStreamer, readContent, setBodyAsByteArray, writeContent
 
Methods inherited from class org.codehaus.wadi.impl.StandardSession
getAttributeNameEnumeration, getAttributeNameSet, getAttributeNameStringArray, getConfig, getHttpSessionEvent, getId, getValuePool, getWrapper, notifyAttributeListeners, notifyBindingListeners, setLastAccessedTime
 
Methods inherited from class org.codehaus.wadi.impl.AbstractContext
getBodyAsByteBuffer, getExclusiveLock, getSharedLock, setBodyAsByteBuffer
 
Methods inherited from class org.codehaus.wadi.impl.AbstractMotable
getName
 
Methods inherited from class org.codehaus.wadi.impl.SimpleEvictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.wadi.DistributableAttributesConfig
getHttpSessionEvent
 
Methods inherited from interface org.codehaus.wadi.AttributesConfig
getValuePool
 
Methods inherited from interface org.codehaus.wadi.Context
getExclusiveLock, getSharedLock
 
Methods inherited from interface org.codehaus.wadi.Motable
getBodyAsByteBuffer, getName, setBodyAsByteBuffer
 
Methods inherited from interface org.codehaus.wadi.Evictable
checkTimeframe, copy, getCreationTime, getLastAccessedTime, getMaxInactiveInterval, getTimedOut, getTimeToLive, init, isNew, mote
 

Field Detail

_dirty

protected transient boolean _dirty

_semantics

protected transient org.codehaus.wadi.impl.AtomicallyReplicableSession.Semantics _semantics

_replicater

protected transient Replicater _replicater
Constructor Detail

AtomicallyReplicableSession

public AtomicallyReplicableSession(ReplicableSessionConfig config)
Method Detail

readEnded

public void readEnded()
Specified by:
readEnded in interface RWLockListener
Specified by:
readEnded in class AbstractReplicableSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int maxInactiveInterval)
Specified by:
setMaxInactiveInterval in interface Evictable
Overrides:
setMaxInactiveInterval in class StandardSession

setAttribute

public Object setAttribute(String name,
                           Object value)
Specified by:
setAttribute in interface Session
Overrides:
setAttribute in class StandardSession

removeAttribute

public Object removeAttribute(String name)
Specified by:
removeAttribute in interface Session
Overrides:
removeAttribute in class StandardSession

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface Session
Overrides:
getAttribute in class StandardSession


Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.