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 boolean
Returns realmId ID.abstract int
hashCode()
boolean
mergeRemoteEntityWithLocalEntity
(SessionEntityWrapper localEntityWrapper) void
setOffline
(boolean offline) void
setRealmId
(String realmId) boolean
-
Constructor Details
-
SessionEntity
public SessionEntity() -
SessionEntity
-
-
Method Details
-
getRealmId
Returns realmId ID.- Returns:
-
setRealmId
-
mergeRemoteEntityWithLocalEntity
public SessionEntityWrapper mergeRemoteEntityWithLocalEntity(SessionEntityWrapper localEntityWrapper) -
equals
-
hashCode
public abstract int hashCode() -
isOffline
public boolean isOffline() -
setOffline
public void setOffline(boolean offline) -
shouldEvaluateRemoval
public boolean shouldEvaluateRemoval()
-