Class HotRodUserSessionMapStorage<K>
java.lang.Object
org.keycloak.models.map.storage.chm.ConcurrentHashMapStorage<K,MapUserSessionEntity,UserSessionModel,CrudOperations<MapUserSessionEntity,UserSessionModel>>
    
org.keycloak.models.map.storage.hotRod.userSession.HotRodUserSessionMapStorage<K>
- All Implemented Interfaces:
- KeycloakTransaction,- HasRealmId,- MapStorage<MapUserSessionEntity,- UserSessionModel> 
public class HotRodUserSessionMapStorage<K>
extends ConcurrentHashMapStorage<K,MapUserSessionEntity,UserSessionModel,CrudOperations<MapUserSessionEntity,UserSessionModel>>    
- 
Nested Class SummaryNested classes/interfaces inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageConcurrentHashMapStorage.MapOperation, ConcurrentHashMapStorage.MapTaskWithValue, ConcurrentHashMapStorage.TaskKey, ConcurrentHashMapStorage.TaskMap
- 
Field SummaryFields inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageactive, cloner, fieldPredicates, keyConverter, map, realmIdEntityField, rollback, tasks
- 
Constructor SummaryConstructorsConstructorDescriptionHotRodUserSessionMapStorage(CrudOperations<MapUserSessionEntity, UserSessionModel> map, StringKeyConverter<K> keyConverter, DeepCloner cloner, Map<SearchableModelField<? super UserSessionModel>, MapModelCriteriaBuilder.UpdatePredicatesFunc<K, MapUserSessionEntity, UserSessionModel>> fieldPredicates, ConcurrentHashMapStorage<String, MapAuthenticatedClientSessionEntity, AuthenticatedClientSessionModel, CrudOperations<MapAuthenticatedClientSessionEntity, AuthenticatedClientSessionModel>> clientSessionStore) 
- 
Method SummaryModifier and TypeMethodDescriptioncreate(MapUserSessionEntity value) Instructs this storage to add a new value into the underlying store on commit in the context of the current transaction.booleanInstructs this storage to delete a value associated with the identifierkeyfrom the underlying store upon commit.longdelete(QueryParameters<UserSessionModel> queryParameters) Instructs this transaction to remove values (identified bymcbfilter) from the underlying store upon commit.Provides possibility to lookup for values by akeyin the underlying store with respect to changes done in current transaction.read(QueryParameters<UserSessionModel> queryParameters) Returns the stream of records that match given criteria and includes changes made in this transaction, i.e.Methods inherited from class org.keycloak.models.map.storage.chm.ConcurrentHashMapStorageaddTask, begin, commit, exists, getCount, getRealmId, getRollbackOnly, isActive, registerEntityForChanges, rollback, setRealmId, setRollbackOnly, updateIfChangedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.map.storage.MapStorageexists
- 
Constructor Details- 
HotRodUserSessionMapStoragepublic HotRodUserSessionMapStorage(CrudOperations<MapUserSessionEntity, UserSessionModel> map, StringKeyConverter<K> keyConverter, DeepCloner cloner, Map<SearchableModelField<? super UserSessionModel>, MapModelCriteriaBuilder.UpdatePredicatesFunc<K, MapUserSessionEntity, UserSessionModel>> fieldPredicates, ConcurrentHashMapStorage<String, MapAuthenticatedClientSessionEntity, AuthenticatedClientSessionModel, CrudOperations<MapAuthenticatedClientSessionEntity, AuthenticatedClientSessionModel>> clientSessionStore) 
 
- 
- 
Method Details- 
readDescription copied from interface:MapStorageProvides possibility to lookup for values by akeyin the underlying store with respect to changes done in current transaction. Updates to the returned instance would be visible in the current transaction and will propagate into the underlying store upon commit. IfVimplementsExpirableEntitythis method should not return entities that are expired. SeeExpirableEntityJavaDoc for more details.- Specified by:
- readin interface- MapStorage<MapUserSessionEntity,- UserSessionModel> 
- Overrides:
- readin class- ConcurrentHashMapStorage<K,- MapUserSessionEntity, - UserSessionModel, - CrudOperations<MapUserSessionEntity, - UserSessionModel>> 
- Parameters:
- sKey- identifier of a value
- Returns:
- a value associated with the given key
 
- 
readDescription copied from class:ConcurrentHashMapStorageReturns the stream of records that match given criteria and includes changes made in this transaction, i.e. the result contains updates and excludes records that have been deleted in this transaction.- Specified by:
- readin interface- MapStorage<MapUserSessionEntity,- UserSessionModel> 
- Overrides:
- readin class- ConcurrentHashMapStorage<K,- MapUserSessionEntity, - UserSessionModel, - CrudOperations<MapUserSessionEntity, - UserSessionModel>> 
- Parameters:
- queryParameters- parameters for the query like firstResult, maxResult, requested ordering, etc.
- Returns:
- values that fulfill the given criteria, that are updated based on changes in the current transaction
 
- 
createDescription copied from interface:MapStorageInstructs this storage to add a new value into the underlying store on commit in the context of the current transaction.Updates to the returned instances of Vwould be visible in the current transaction and will propagate into the underlying store upon commit. The ID of the entity passed in the parameter might change to a different value in the returned value if the underlying storage decided this was necessary. If the ID of the entity was null before, it will be set on the returned value.- Specified by:
- createin interface- MapStorage<MapUserSessionEntity,- UserSessionModel> 
- Overrides:
- createin class- ConcurrentHashMapStorage<K,- MapUserSessionEntity, - UserSessionModel, - CrudOperations<MapUserSessionEntity, - UserSessionModel>> 
- Parameters:
- value- the value
- Returns:
- Entity representing the valuein the store. It may or may not be the same instance asvalue.
 
- 
deleteDescription copied from interface:MapStorageInstructs this storage to delete a value associated with the identifierkeyfrom the underlying store upon commit.- Specified by:
- deletein interface- MapStorage<MapUserSessionEntity,- UserSessionModel> 
- Overrides:
- deletein class- ConcurrentHashMapStorage<K,- MapUserSessionEntity, - UserSessionModel, - CrudOperations<MapUserSessionEntity, - UserSessionModel>> 
- Parameters:
- key- identifier of a value
- Returns:
- Returns trueif the object has been deleted or result cannot be determined,falseotherwise.
 
- 
deleteDescription copied from interface:MapStorageInstructs this transaction to remove values (identified bymcbfilter) from the underlying store upon commit.- Specified by:
- deletein interface- MapStorage<MapUserSessionEntity,- UserSessionModel> 
- Overrides:
- deletein class- ConcurrentHashMapStorage<K,- MapUserSessionEntity, - UserSessionModel, - CrudOperations<MapUserSessionEntity, - UserSessionModel>> 
- Parameters:
- queryParameters- parameters for the query like firstResult, maxResult, requested ordering, etc.
- Returns:
- number of removed objects (might return -1if not supported)
 
 
-