Package org.keycloak.models.map.storage
Interface MapStorageProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
ConcurrentHashMapStorageProvider
,FileMapStorageProvider
,HotRodMapStorageProvider
,JpaMapStorageProvider
,LdapMapStorageProvider
- Author:
- hmlnarik
-
Method Summary
Modifier and TypeMethodDescription<V extends AbstractEntity,
M>
MapStorage<V,M> getMapStorage
(Class<M> modelType, MapStorageProviderFactory.Flag... flags) Returns a key-value storage implementation for the given types.
-
Method Details
-
getMapStorage
<V extends AbstractEntity,M> MapStorage<V,M> getMapStorage(Class<M> modelType, MapStorageProviderFactory.Flag... flags) Returns a key-value storage implementation for the given types.- Type Parameters:
V
- type of the valueM
- type of the corresponding model (e.g.UserModel
)- Parameters:
modelType
- Model typeflags
- Flags of the returned storage. Best effort, flags may be not honored by underlying implementation- Returns:
- Throws:
IllegalArgumentException
- If some of the types is not supported by the underlying implementation.
-