Class BaseHASession

    • Field Detail

      • userName

        protected String userName
      • persistentFlag

        protected boolean persistentFlag
    • Constructor Detail

      • BaseHASession

        public BaseHASession​(Manager manager)
        Creates a new instance of BaseHASession
    • Method Detail

      • setId

        public void setId​(String id)
        Set the session identifier for this session.
        Specified by:
        setId in interface Session
        Overrides:
        setId in class StandardSession
        Parameters:
        id - The new session identifier
      • isDirty

        public abstract boolean isDirty()
        always return true for isDirty() this type of session is always dirty
        Specified by:
        isDirty in interface HASession
      • setDirty

        public abstract void setDirty​(boolean value)
        this is deliberately a no-op store framework calls this method so it must be there but must not have any effect
        Specified by:
        setDirty in interface HASession
        Parameters:
        value -
      • isPersistent

        public boolean isPersistent()
        is the session persistent
        Specified by:
        isPersistent in interface HASession
      • setPersistent

        public void setPersistent​(boolean value)
        this sets the persistent flag
        Specified by:
        setPersistent in interface HASession
      • setUserName

        public void setUserName​(String value)
        this sets the user name
        Specified by:
        setUserName in interface HASession
      • isPersistentFlag

        public boolean isPersistentFlag()
      • recycle

        public void recycle()
        Description copied from class: StandardSession
        Release all object references, and initialize instance variables, in preparation for reuse of this object.
        Specified by:
        recycle in interface Session
        Overrides:
        recycle in class StandardSession
      • save

        public void save()
      • sync

        public void sync()
        Specified by:
        sync in interface HASession