Class InfinispanSessionDataStoreFactory

  • All Implemented Interfaces:
    org.eclipse.jetty.server.session.SessionDataStoreFactory

    public class InfinispanSessionDataStoreFactory
    extends org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory
    InfinispanSessionDataStoreFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.infinispan.commons.api.BasicCache<java.lang.String,​java.lang.Object> getCache()
      Get the clustered cache instance.
      int getInfinispanIdleTimeoutSec()  
      org.eclipse.jetty.server.session.SessionDataStore getSessionDataStore​(org.eclipse.jetty.server.session.SessionHandler handler)  
      void setCache​(org.infinispan.commons.api.BasicCache<java.lang.String,​java.lang.Object> cache)
      Set the clustered cache instance.
      void setInfinispanIdleTimeoutSec​(int infinispanIdleTimeoutSec)  
      • Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionDataStoreFactory

        getGracePeriodSec, getSavePeriodSec, setGracePeriodSec, setSavePeriodSec
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InfinispanSessionDataStoreFactory

        public InfinispanSessionDataStoreFactory()
    • Method Detail

      • getInfinispanIdleTimeoutSec

        public int getInfinispanIdleTimeoutSec()
        Returns:
        the infinispanIdleTimeoutSec
      • setInfinispanIdleTimeoutSec

        public void setInfinispanIdleTimeoutSec​(int infinispanIdleTimeoutSec)
        Parameters:
        infinispanIdleTimeoutSec - the infinispanIdleTimeoutSec to set
      • getSessionDataStore

        public org.eclipse.jetty.server.session.SessionDataStore getSessionDataStore​(org.eclipse.jetty.server.session.SessionHandler handler)
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
        See Also:
        SessionDataStoreFactory.getSessionDataStore(org.eclipse.jetty.server.session.SessionHandler)
      • getCache

        public org.infinispan.commons.api.BasicCache<java.lang.String,​java.lang.Object> getCache()
        Get the clustered cache instance.
        Returns:
        the cache
      • setCache

        public void setCache​(org.infinispan.commons.api.BasicCache<java.lang.String,​java.lang.Object> cache)
        Set the clustered cache instance.
        Parameters:
        cache - the cache