Class SingleUseObjectHotRodMapStorage
- java.lang.Object
- 
- org.keycloak.models.map.storage.hotRod.HotRodMapStorage<String,HotRodSingleUseObjectEntity,HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>
- 
- org.keycloak.models.map.storage.hotRod.SingleUseObjectHotRodMapStorage
 
 
- 
- All Implemented Interfaces:
- ConcurrentHashMapCrudOperations<HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>,- MapStorage<HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>
 
 public class SingleUseObjectHotRodMapStorage extends HotRodMapStorage<String,HotRodSingleUseObjectEntity,HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel> - Author:
- Martin Kanis
 
- 
- 
Field Summary- 
Fields inherited from class org.keycloak.models.map.storage.hotRod.HotRodMapStorageisExpirableEntity
 
- 
 - 
Constructor SummaryConstructors Constructor Description SingleUseObjectHotRodMapStorage(org.infinispan.client.hotrod.RemoteCache<String,HotRodSingleUseObjectEntity> remoteCache, StringKeyConverter<String> keyConverter, HotRodEntityDescriptor<HotRodSingleUseObjectEntity,HotRodSingleUseObjectEntityDelegate> storedEntityDescriptor, DeepCloner cloner, AllAreasHotRodTransactionsWrapper txWrapper)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HotRodSingleUseObjectEntityDelegatecreate(HotRodSingleUseObjectEntityDelegate value)Creates an object in the store.protected MapKeycloakTransaction<HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>createTransactionInternal(KeycloakSession session)Stream<HotRodSingleUseObjectEntityDelegate>read(QueryParameters<SingleUseObjectValueModel> queryParameters)Returns stream of objects satisfying givencriteriafrom the storage.- 
Methods inherited from class org.keycloak.models.map.storage.hotRod.HotRodMapStoragecreateCriteriaBuilder, createTransaction, delete, delete, exists, getCount, read, update
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.models.map.storage.chm.ConcurrentHashMapCrudOperationsdetermineKeyFromValue, exists
 
- 
 
- 
- 
- 
Constructor Detail- 
SingleUseObjectHotRodMapStoragepublic SingleUseObjectHotRodMapStorage(org.infinispan.client.hotrod.RemoteCache<String,HotRodSingleUseObjectEntity> remoteCache, StringKeyConverter<String> keyConverter, HotRodEntityDescriptor<HotRodSingleUseObjectEntity,HotRodSingleUseObjectEntityDelegate> storedEntityDescriptor, DeepCloner cloner, AllAreasHotRodTransactionsWrapper txWrapper) 
 
- 
 - 
Method Detail- 
createTransactionInternalprotected MapKeycloakTransaction<HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel> createTransactionInternal(KeycloakSession session) 
 - 
createpublic HotRodSingleUseObjectEntityDelegate create(HotRodSingleUseObjectEntityDelegate value) Description copied from interface:ConcurrentHashMapCrudOperationsCreates an object in the store. ID of thevaluemay be prescribed in id of thevalue. If the id isnullor its format is not matching the store internal format for ID, then thevalue's ID will be generated and returned in the id of the return value.- Specified by:
- createin interface- ConcurrentHashMapCrudOperations<HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>
- Overrides:
- createin class- HotRodMapStorage<String,HotRodSingleUseObjectEntity,HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>
- Parameters:
- value- Entity to create in the store
- Returns:
- Entity representing the valuein the store. It may or may not be the same instance asvalue
- See Also:
- AbstractEntity.getId()
 
 - 
readpublic Stream<HotRodSingleUseObjectEntityDelegate> read(QueryParameters<SingleUseObjectValueModel> queryParameters) Description copied from interface:ConcurrentHashMapCrudOperationsReturns stream of objects satisfying givencriteriafrom the storage. The criteria are specified in the given criteria builder based on model properties. IfVimplementsExpirableEntitythis method should not return entities that are expired. SeeExpirableEntityJavaDoc for more details.- Specified by:
- readin interface- ConcurrentHashMapCrudOperations<HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>
- Overrides:
- readin class- HotRodMapStorage<String,HotRodSingleUseObjectEntity,HotRodSingleUseObjectEntityDelegate,SingleUseObjectValueModel>
- Parameters:
- queryParameters- parameters for the query like firstResult, maxResult, requested ordering, etc.
- Returns:
- Stream of objects. Never returns null.
 
 
- 
 
-