org.eclipse.jetty.nosql
Class NoSqlSession

java.lang.Object
  extended by org.eclipse.jetty.server.session.AbstractSession
      extended by org.eclipse.jetty.nosql.NoSqlSession
All Implemented Interfaces:
HttpSession, AbstractSessionManager.SessionIf

public class NoSqlSession
extends AbstractSession


Field Summary
 
Fields inherited from class org.eclipse.jetty.server.session.AbstractSession
_jdbcAttributes
 
Constructor Summary
NoSqlSession(NoSqlSessionManager manager, long created, long accessed, String clusterId)
           
NoSqlSession(NoSqlSessionManager manager, long created, long accessed, String clusterId, Object version)
           
 
Method Summary
protected  boolean access(long time)
           
protected  void checkValid()
          asserts that the session is valid
protected  void complete()
           
protected  void doInvalidate()
           
 Object doPutOrRemove(String name, Object value)
           
 Object getVersion()
           
 boolean isDirty()
           
protected  void refresh()
           
protected  void save(boolean activateAfterSave)
           
 Set<String> takeDirty()
           
 
Methods inherited from class org.eclipse.jetty.server.session.AbstractSession
bindValue, clearAttributes, cookieSet, didActivate, doGet, getAccessed, getAttribute, getAttributeNames, getAttributes, getClusterId, getCookieSetTime, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getNames, getNodeId, getRequests, getServletContext, getSession, getSessionContext, getValue, getValueNames, invalidate, isIdChanged, isNew, isValid, putValue, removeAttribute, removeValue, setAttribute, setIdChanged, setMaxInactiveInterval, setRequests, timeout, toString, unbindValue, willPassivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSqlSession

public NoSqlSession(NoSqlSessionManager manager,
                    long created,
                    long accessed,
                    String clusterId)

NoSqlSession

public NoSqlSession(NoSqlSessionManager manager,
                    long created,
                    long accessed,
                    String clusterId,
                    Object version)
Method Detail

doPutOrRemove

public Object doPutOrRemove(String name,
                            Object value)
Overrides:
doPutOrRemove in class AbstractSession

checkValid

protected void checkValid()
                   throws IllegalStateException
Description copied from class: AbstractSession
asserts that the session is valid

Overrides:
checkValid in class AbstractSession
Throws:
IllegalStateException

access

protected boolean access(long time)
Overrides:
access in class AbstractSession

complete

protected void complete()
Overrides:
complete in class AbstractSession

doInvalidate

protected void doInvalidate()
                     throws IllegalStateException
Overrides:
doInvalidate in class AbstractSession
Throws:
IllegalStateException

save

protected void save(boolean activateAfterSave)

refresh

protected void refresh()

isDirty

public boolean isDirty()

takeDirty

public Set<String> takeDirty()

getVersion

public Object getVersion()


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.