Class SessionConfiguration

  • All Implemented Interfaces:

    
    public final class SessionConfiguration
    
                        

    Type-safe config DSL that controls how sessions should behave.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Duration getBackgroundInactivityTimeout() The maximum duration which a session can remain open in the background before it automatically expires.
      final Unit setBackgroundInactivityTimeout(Duration backgroundInactivityTimeout) The maximum duration which a session can remain open in the background before it automatically expires.
      final Duration getMaxLifetime() The maximum duration which a session can remain open before it automatically expires.
      final Unit setMaxLifetime(Duration maxLifetime) The maximum duration which a session can remain open before it automatically expires.
      final Unit observers(SessionObserver observers)
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • setBackgroundInactivityTimeout

         final Unit setBackgroundInactivityTimeout(Duration backgroundInactivityTimeout)

        The maximum duration which a session can remain open in the background before it automatically expires.

      • getMaxLifetime

         final Duration getMaxLifetime()

        The maximum duration which a session can remain open before it automatically expires.

      • setMaxLifetime

         final Unit setMaxLifetime(Duration maxLifetime)

        The maximum duration which a session can remain open before it automatically expires.