Class SpaceSessionDataStore

java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.session.AbstractSessionDataStore
org.openspaces.pu.container.jee.jetty.session.SpaceSessionDataStore
All Implemented Interfaces:
org.eclipse.jetty.session.SessionDataMap, org.eclipse.jetty.session.SessionDataStore, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle

public class SpaceSessionDataStore extends org.eclipse.jetty.session.AbstractSessionDataStore
Since:
15.0.0
Author:
Niv Ingberg
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container

    org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable

    org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

    org.eclipse.jetty.util.component.LifeCycle.Listener
  • Field Summary

    Fields inherited from class org.eclipse.jetty.session.AbstractSessionDataStore

    _context, _gracePeriodSec, _lastExpiryCheckTime, _lastOrphanSweepTime, _savePeriodSec, DEFAULT_GRACE_PERIOD_SEC, DEFAULT_SAVE_PERIOD_SEC

    Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    FAILED, STARTED, STARTING, STOPPED, STOPPING

    Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

    KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    doCheckExpired(Set<String> candidates, long time)
     
    void
    doCleanOrphans(long time)
     
    boolean
     
    doGetExpired(long before)
     
    org.eclipse.jetty.session.SessionData
     
    void
    doStore(String id, org.eclipse.jetty.session.SessionData data, long lastSaveTime)
     
    boolean
     
    void
    initialize(org.eclipse.jetty.session.SessionContext context)
     
    boolean
     
    org.eclipse.jetty.session.SessionData
    newSessionData(String id, long created, long accessed, long lastAccessed, long maxInactiveMs)
     
     
    void
    setLease(long lease)
     

    Methods inherited from class org.eclipse.jetty.session.AbstractSessionDataStore

    checkStarted, cleanOrphans, doStart, getExpired, getGracePeriodSec, getSavePeriodSec, load, setGracePeriodSec, setSavePeriodSec, store, toString

    Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle

    addBean, addBean, addEventListener, addManaged, contains, destroy, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans

    Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

    getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.component.Container

    getCachedBeans, getEventListeners

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

    dumpSelf

    Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer

    isDumpable

    Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

    addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
  • Constructor Details

    • SpaceSessionDataStore

      public SpaceSessionDataStore(GigaSpace gigaSpace)
  • Method Details

    • initialize

      public void initialize(org.eclipse.jetty.session.SessionContext context) throws Exception
      Specified by:
      initialize in interface org.eclipse.jetty.session.SessionDataMap
      Overrides:
      initialize in class org.eclipse.jetty.session.AbstractSessionDataStore
      Throws:
      Exception
    • isPassivating

      public boolean isPassivating()
    • doExists

      public boolean doExists(String s) throws Exception
      Specified by:
      doExists in class org.eclipse.jetty.session.AbstractSessionDataStore
      Throws:
      Exception
    • doStore

      public void doStore(String id, org.eclipse.jetty.session.SessionData data, long lastSaveTime) throws Exception
      Specified by:
      doStore in class org.eclipse.jetty.session.AbstractSessionDataStore
      Throws:
      Exception
    • doLoad

      public org.eclipse.jetty.session.SessionData doLoad(String id) throws Exception
      Specified by:
      doLoad in class org.eclipse.jetty.session.AbstractSessionDataStore
      Throws:
      Exception
    • doCheckExpired

      public Set<String> doCheckExpired(Set<String> candidates, long time)
      Specified by:
      doCheckExpired in class org.eclipse.jetty.session.AbstractSessionDataStore
    • doGetExpired

      public Set<String> doGetExpired(long before)
      Specified by:
      doGetExpired in class org.eclipse.jetty.session.AbstractSessionDataStore
    • doCleanOrphans

      public void doCleanOrphans(long time)
      Specified by:
      doCleanOrphans in class org.eclipse.jetty.session.AbstractSessionDataStore
    • exists

      public boolean exists(String id) throws Exception
      Specified by:
      exists in interface org.eclipse.jetty.session.SessionDataStore
      Overrides:
      exists in class org.eclipse.jetty.session.AbstractSessionDataStore
      Throws:
      Exception
    • delete

      public boolean delete(String id) throws Exception
      Throws:
      Exception
    • newSessionData

      public org.eclipse.jetty.session.SessionData newSessionData(String id, long created, long accessed, long lastAccessed, long maxInactiveMs)
      Specified by:
      newSessionData in interface org.eclipse.jetty.session.SessionDataStore
      Overrides:
      newSessionData in class org.eclipse.jetty.session.AbstractSessionDataStore
    • setLease

      public void setLease(long lease)
    • query

      protected IdQuery<SpaceSessionData> query(String id)