Class SessionEntity
java.lang.Object
org.keycloak.models.sessions.infinispan.entities.SessionEntity
- Direct Known Subclasses:
AuthenticatedClientSessionEntity
,InitializerState
,LoginFailureEntity
,RootAuthenticationSessionEntity
,UserSessionEntity
Represents an entity containing data about a session, i.e. an object that is stored in infinispan cache and can be
potentially shared across DCs. Due to conflict management in
RemoteCacheInvoker
and
InfinispanChangelogBasedTransaction
that use Infinispan's replace()
method, overriding hashCode()
and equals(java.lang.Object)
is mandatory in descendants.- Author:
- Stian Thorgersen
-
Constructor Summary
-
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()
-