Interface SessionCreationMetaData

    • Method Detail

      • setMaxInactiveInterval

        void setMaxInactiveInterval​(Duration duration)
        Sets the maximum duration of time this session may remain idle before it will be expired by the session manager.
        Parameters:
        a - maximum duration of time this session may remain idle before it will be expired by the session manager.
      • isValid

        boolean isValid()
        Indicates whether or not this session has been invalidated.
        Returns:
        true, if this session was invalidated, false otherwise.
      • invalidate

        boolean invalidate()
        Invalidates this session.
        Returns:
        true, if this session was previous valid, false otherwise
      • isNew

        boolean isNew()
        Indicates whether or not this session was newly created.
        Returns:
        true, if this session was newly created, false otherwise.
      • close

        void close()
        Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.
        Specified by:
        close in interface AutoCloseable