Interface ExpirationTask


public interface ExpirationTask
Lifecycle methods for the user and client session expiration task.

The task must remove the expired sessions from the database. The start() is invoked when Keycloak starts and, respectively, stop() when Keycloak is shutdown.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Starts the expiration task.
    void
    Stops the expiration task.
  • Method Details

    • start

      void start()
      Starts the expiration task.

      This method is only invoked when Keycloak starts, and the implementation is responsible to schedule future invocation, to prevent the database growing.

    • stop

      void stop()
      Stops the expiration task.