keycloak
静的公開変数類 | 全メンバ一覧
org.keycloak.models.utils.SessionTimeoutHelper クラス
org.keycloak.models.utils.SessionTimeoutHelper 連携図
Collaboration graph

静的公開変数類

static final int PERIODIC_TASK_INTERVAL_SECONDS = 60
 
static final int IDLE_TIMEOUT_WINDOW_SECONDS = 120
 
static final int PERIODIC_CLEANER_IDLE_TIMEOUT_WINDOW_SECONDS = 180
 

詳解

著者
Marek Posolda

メンバ詳解

◆ IDLE_TIMEOUT_WINDOW_SECONDS

final int org.keycloak.models.utils.SessionTimeoutHelper.IDLE_TIMEOUT_WINDOW_SECONDS = 120
static

The maximum time difference, which will be still tolerated when checking userSession idle timeout.

For example, if there are 2 datacenters and sessionRefresh happened on DC1, then we still want to tolerate some timeout on DC2 due the fact that lastSessionRefresh of current userSession may be updated later from DC1.

See PERIODIC_TASK_INTERVAL_SECONDS

◆ PERIODIC_CLEANER_IDLE_TIMEOUT_WINDOW_SECONDS

final int org.keycloak.models.utils.SessionTimeoutHelper.PERIODIC_CLEANER_IDLE_TIMEOUT_WINDOW_SECONDS = 180
static

The maximum time difference, which will be still tolerated when checking userSession idle timeout with periodic cleaner threads.

Just the sessions, with the timeout bigger than this value are considered really time-outed and can be garbage-collected (Considering the cross-dc environment and the fact that some session updates on different DC can be postponed and seen on current DC with some delay).

See PERIODIC_TASK_INTERVAL_SECONDS and IDLE_TIMEOUT_WINDOW_SECONDS

◆ PERIODIC_TASK_INTERVAL_SECONDS

final int org.keycloak.models.utils.SessionTimeoutHelper.PERIODIC_TASK_INTERVAL_SECONDS = 60
static

Interval specifies maximum time, for which the "userSession.lastSessionRefresh" may contain stale value.

For example, if there are 2 datacenters and sessionRefresh will happen on DC1, then the message about the updated lastSessionRefresh may be sent to the DC2 later (EG. Some periodic thread will send the updated lastSessionRefresh times in batches with 60 seconds delay).


このクラス詳解は次のファイルから抽出されました: