Class ClientSessionQueries
java.lang.Object
org.keycloak.models.sessions.infinispan.query.ClientSessionQueries
Util class with Infinispan Ickle Queries for 
RemoteAuthenticatedClientSessionEntity.- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionstatic org.infinispan.commons.api.query.Query<Object[]>activeClientCount(org.infinispan.client.hotrod.RemoteCache<ClientSessionKey, RemoteAuthenticatedClientSessionEntity> cache) Returns a projection with the client ID and its number of active client sessions.static org.infinispan.commons.api.query.Query<Object[]>countClientSessions(org.infinispan.client.hotrod.RemoteCache<ClientSessionKey, RemoteAuthenticatedClientSessionEntity> cache, String realmId, String clientId) Returns a projection with the sum of all client session belonging to the client ID.static org.infinispan.commons.api.query.Query<RemoteAuthenticatedClientSessionEntity>fetchClientSessions(org.infinispan.client.hotrod.RemoteCache<ClientSessionKey, RemoteAuthenticatedClientSessionEntity> cache, String userSessionId) Returns a projection with the client session, and the version of all client sessions belonging to the user session ID.static org.infinispan.commons.api.query.Query<Object[]>fetchUserSessionIdForClientId(org.infinispan.client.hotrod.RemoteCache<ClientSessionKey, RemoteAuthenticatedClientSessionEntity> cache, String realmId, String clientId) Returns a projection with the user session ID for client sessions from the clientclientId. 
- 
Field Details
- 
CLIENT_SESSION
 
 - 
 - 
Method Details
- 
fetchUserSessionIdForClientId
public static org.infinispan.commons.api.query.Query<Object[]> fetchUserSessionIdForClientId(org.infinispan.client.hotrod.RemoteCache<ClientSessionKey, RemoteAuthenticatedClientSessionEntity> cache, String realmId, String clientId) Returns a projection with the user session ID for client sessions from the clientclientId. - 
activeClientCount
public static org.infinispan.commons.api.query.Query<Object[]> activeClientCount(org.infinispan.client.hotrod.RemoteCache<ClientSessionKey, RemoteAuthenticatedClientSessionEntity> cache) Returns a projection with the client ID and its number of active client sessions. - 
countClientSessions
public static org.infinispan.commons.api.query.Query<Object[]> countClientSessions(org.infinispan.client.hotrod.RemoteCache<ClientSessionKey, RemoteAuthenticatedClientSessionEntity> cache, String realmId, String clientId) Returns a projection with the sum of all client session belonging to the client ID. - 
fetchClientSessions
public static org.infinispan.commons.api.query.Query<RemoteAuthenticatedClientSessionEntity> fetchClientSessions(org.infinispan.client.hotrod.RemoteCache<ClientSessionKey, RemoteAuthenticatedClientSessionEntity> cache, String userSessionId) Returns a projection with the client session, and the version of all client sessions belonging to the user session ID. 
 -