Class SessionEntity
java.lang.Object
org.keycloak.models.sessions.infinispan.entities.SessionEntity
- All Implemented Interfaces:
Serializable
- 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
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Returns realmId ID.abstract int
hashCode()
mergeRemoteEntityWithLocalEntity
(SessionEntityWrapper localEntityWrapper) void
setRealmId
(String realmId)
-
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()
-