Class RedissonSession

  • All Implemented Interfaces:
    jakarta.servlet.http.HttpSession, Serializable, org.apache.catalina.Session

    public class RedissonSession
    extends org.apache.catalina.session.StandardSession
    Redisson Session object for Apache Tomcat
    Author:
    Nikita Koksharov
    See Also:
    Serialized Form
    • Field Detail

      • ATTRS

        public static final Set<String> ATTRS
    • Method Detail

      • getAttribute

        public Object getAttribute​(String name)
        Specified by:
        getAttribute in interface jakarta.servlet.http.HttpSession
        Overrides:
        getAttribute in class org.apache.catalina.session.StandardSession
      • getAttributeNames

        public Enumeration<String> getAttributeNames()
        Specified by:
        getAttributeNames in interface jakarta.servlet.http.HttpSession
        Overrides:
        getAttributeNames in class org.apache.catalina.session.StandardSession
      • getValueNames

        public String[] getValueNames()
        Specified by:
        getValueNames in interface jakarta.servlet.http.HttpSession
        Overrides:
        getValueNames in class org.apache.catalina.session.StandardSession
      • delete

        public void delete()
      • setCreationTime

        public void setCreationTime​(long time)
        Specified by:
        setCreationTime in interface org.apache.catalina.Session
        Overrides:
        setCreationTime in class org.apache.catalina.session.StandardSession
      • access

        public void access()
        Specified by:
        access in interface org.apache.catalina.Session
        Overrides:
        access in class org.apache.catalina.session.StandardSession
      • expireSession

        protected void expireSession()
      • setMaxInactiveInterval

        public void setMaxInactiveInterval​(int interval)
        Specified by:
        setMaxInactiveInterval in interface jakarta.servlet.http.HttpSession
        Specified by:
        setMaxInactiveInterval in interface org.apache.catalina.Session
        Overrides:
        setMaxInactiveInterval in class org.apache.catalina.session.StandardSession
      • setPrincipal

        public void setPrincipal​(Principal principal)
        Specified by:
        setPrincipal in interface org.apache.catalina.Session
        Overrides:
        setPrincipal in class org.apache.catalina.session.StandardSession
      • setAuthType

        public void setAuthType​(String authType)
        Specified by:
        setAuthType in interface org.apache.catalina.Session
        Overrides:
        setAuthType in class org.apache.catalina.session.StandardSession
      • setValid

        public void setValid​(boolean isValid)
        Specified by:
        setValid in interface org.apache.catalina.Session
        Overrides:
        setValid in class org.apache.catalina.session.StandardSession
      • setNew

        public void setNew​(boolean isNew)
        Specified by:
        setNew in interface org.apache.catalina.Session
        Overrides:
        setNew in class org.apache.catalina.session.StandardSession
      • endAccess

        public void endAccess()
        Specified by:
        endAccess in interface org.apache.catalina.Session
        Overrides:
        endAccess in class org.apache.catalina.session.StandardSession
      • superSetAttribute

        public void superSetAttribute​(String name,
                                      Object value,
                                      boolean notify)
      • setAttribute

        public void setAttribute​(String name,
                                 Object value,
                                 boolean notify)
        Overrides:
        setAttribute in class org.apache.catalina.session.StandardSession
      • superRemoveAttributeInternal

        public void superRemoveAttributeInternal​(String name,
                                                 boolean notify)
      • getIdleTimeInternal

        public long getIdleTimeInternal()
        Specified by:
        getIdleTimeInternal in interface org.apache.catalina.Session
        Overrides:
        getIdleTimeInternal in class org.apache.catalina.session.StandardSession
      • removeAttributeInternal

        protected void removeAttributeInternal​(String name,
                                               boolean notify)
        Overrides:
        removeAttributeInternal in class org.apache.catalina.session.StandardSession
      • save

        public void save()
      • recycle

        public void recycle()
        Specified by:
        recycle in interface org.apache.catalina.Session
        Overrides:
        recycle in class org.apache.catalina.session.StandardSession
      • startUsage

        public void startUsage()
      • endUsage

        public void endUsage()