public class SessionTimeouts extends Object
Modifier and Type | Field and Description |
---|---|
static long |
ENTRY_EXPIRED_FLAG
This indicates that entry is already expired and should be removed from the cache
|
static int |
MINIMAL_EXPIRATION_SEC
This is used just if timeouts are not set on the realm (usually happens just during tests when realm is created manually with the model API)
|
Constructor and Description |
---|
SessionTimeouts() |
Modifier and Type | Method and Description |
---|---|
static long |
getClientSessionLifespanMs(RealmModel realm,
AuthenticatedClientSessionEntity clientSessionEntity)
Get the maximum lifespan, which this clientSession can remain in the infinispan cache.
|
static long |
getClientSessionMaxIdleMs(RealmModel realm,
AuthenticatedClientSessionEntity clientSessionEntity)
Get the maxIdle, which this clientSession will use.
|
static long |
getLoginFailuresLifespanMs(RealmModel realm,
LoginFailureEntity loginFailureEntity)
Not using lifespan for detached login failure (backwards compatibility with the background cleaner threads, which were used for cleanup of detached login failures)
|
static long |
getLoginFailuresMaxIdleMs(RealmModel realm,
LoginFailureEntity loginFailureEntity)
Not using maxIdle for detached login failure (backwards compatibility with the background cleaner threads, which were used for cleanup of detached login failures)
|
static long |
getOfflineClientSessionLifespanMs(RealmModel realm,
AuthenticatedClientSessionEntity authenticatedClientSessionEntity)
Get the maximum lifespan, which this offline clientSession can remain in the infinispan cache.
|
static long |
getOfflineClientSessionMaxIdleMs(RealmModel realm,
AuthenticatedClientSessionEntity authenticatedClientSessionEntity)
Get the maxIdle, which this offline clientSession will use.
|
static long |
getOfflineSessionLifespanMs(RealmModel realm,
UserSessionEntity userSessionEntity)
Get the maximum lifespan, which this offline userSession can remain in the infinispan cache.
|
static long |
getOfflineSessionMaxIdleMs(RealmModel realm,
UserSessionEntity userSessionEntity)
Get the maximum idle time for this offline userSession.
|
static long |
getUserSessionLifespanMs(RealmModel realm,
UserSessionEntity userSessionEntity)
Get the maximum lifespan, which this userSession can remain in the infinispan cache.
|
static long |
getUserSessionMaxIdleMs(RealmModel realm,
UserSessionEntity userSessionEntity)
Get the maximum idle time for this userSession.
|
public static final long ENTRY_EXPIRED_FLAG
public static final int MINIMAL_EXPIRATION_SEC
public static long getUserSessionLifespanMs(RealmModel realm, UserSessionEntity userSessionEntity)
realm
- userSessionEntity
- public static long getUserSessionMaxIdleMs(RealmModel realm, UserSessionEntity userSessionEntity)
realm
- userSessionEntity
- public static long getClientSessionLifespanMs(RealmModel realm, AuthenticatedClientSessionEntity clientSessionEntity)
realm
- clientSessionEntity
- public static long getClientSessionMaxIdleMs(RealmModel realm, AuthenticatedClientSessionEntity clientSessionEntity)
realm
- clientSessionEntity
- public static long getOfflineSessionLifespanMs(RealmModel realm, UserSessionEntity userSessionEntity)
realm
- userSessionEntity
- public static long getOfflineSessionMaxIdleMs(RealmModel realm, UserSessionEntity userSessionEntity)
realm
- userSessionEntity
- public static long getOfflineClientSessionLifespanMs(RealmModel realm, AuthenticatedClientSessionEntity authenticatedClientSessionEntity)
realm
- authenticatedClientSessionEntity
- public static long getOfflineClientSessionMaxIdleMs(RealmModel realm, AuthenticatedClientSessionEntity authenticatedClientSessionEntity)
realm
- authenticatedClientSessionEntity
- public static long getLoginFailuresLifespanMs(RealmModel realm, LoginFailureEntity loginFailureEntity)
realm
- loginFailureEntity
- public static long getLoginFailuresMaxIdleMs(RealmModel realm, LoginFailureEntity loginFailureEntity)
realm
- loginFailureEntity
- Copyright © 2021 JBoss by Red Hat. All rights reserved.