Class ClearExpiredUserSessions

java.lang.Object
org.keycloak.services.scheduled.ClearExpiredUserSessions
All Implemented Interfaces:
KeycloakSessionTask, ScheduledTask

@Deprecated(since="26.5", forRemoval=true) public class ClearExpiredUserSessions extends Object implements ScheduledTask
Deprecated, for removal: This API element is subject to removal in a future version.
to be removed without replacement. The providers are responsible for purging the expired entries themselves.
Author:
Stian Thorgersen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.jboss.logging.Logger
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      protected static final org.jboss.logging.Logger logger
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TASK_NAME

      public static final String TASK_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • ClearExpiredUserSessions

      public ClearExpiredUserSessions()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • run

      public void run(KeycloakSession session)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      run in interface KeycloakSessionTask
    • getTaskName

      public String getTaskName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getTaskName in interface KeycloakSessionTask
      Specified by:
      getTaskName in interface ScheduledTask
      Returns:
      Details about the task. Can be useful for logging purposes