Interface SessionCreationMetaData

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.
      boolean invalidate()
      Invalidates this session.
      boolean isNew()
      Indicates whether or not this session was newly created.
      boolean isValid()
      Indicates whether or not this session has been invalidated.
      void setTimeout​(Duration duration)
      Sets the maximum duration of time this session may remain idle before it will be expired by the session manager.
    • Method Detail

      • setTimeout

        void setTimeout​(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