Class SessionEntity
java.lang.Object
org.keycloak.models.sessions.infinispan.entities.SessionEntity
- Direct Known Subclasses:
AuthenticatedClientSessionEntity,LoginFailureEntity,RootAuthenticationSessionEntity,UserSessionEntity
Represents an entity containing data about a session, i.e. an object that is stored in infinispan cache.
Due to conflict management in
InfinispanChangelogBasedTransaction that use Infinispan's replace()
method, overriding hashCode() and equals(java.lang.Object) is mandatory in descendants.- Author:
- Stian Thorgersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanReturns realmId ID.abstract inthashCode()booleanmergeRemoteEntityWithLocalEntity(SessionEntityWrapper localEntityWrapper) Deprecated, for removal: This API element is subject to removal in a future version.voidsetOffline(boolean offline) voidsetRealmId(String realmId) boolean
-
Constructor Details
-
SessionEntity
public SessionEntity() -
SessionEntity
-
-
Method Details
-
getRealmId
Returns realmId ID.- Returns:
-
setRealmId
-
mergeRemoteEntityWithLocalEntity
@Deprecated(since="26.4", forRemoval=true) public SessionEntityWrapper mergeRemoteEntityWithLocalEntity(SessionEntityWrapper localEntityWrapper) Deprecated, for removal: This API element is subject to removal in a future version. -
equals
-
hashCode
public abstract int hashCode() -
isOffline
public boolean isOffline() -
setOffline
public void setOffline(boolean offline) -
shouldEvaluateRemoval
public boolean shouldEvaluateRemoval()
-