org.keycloak.models.map.storage

## Interface MapStorageProvider

- All Superinterfaces:
    Provider
  All Known Implementing Classes:
    ConcurrentHashMapStorageProvider

      public interface MapStorageProvider
      extends Provider

  Author:
    hmlnarik

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `<V extends AbstractEntity,M> MapStorage<V,M>` | `getStorage(Class<M> modelType, MapStorageProviderFactory.Flag... flags)` Returns a key-value storage implementation for the given types.

    - ### Methods inherited from interface org.keycloak.provider.Provider

      `close`

- - ### Method Detail

    - #### getStorage

          <V extends AbstractEntity,M> MapStorage<V,M> getStorage(Class<M> modelType,
                                                                  MapStorageProviderFactory.Flag... flags)

      Returns a key-value storage implementation for the given types.
      Type Parameters:
        `V` - type of the value
        `M` - type of the corresponding model (e.g. `UserModel`)
      Parameters:
        `modelType` - Model type
        `flags` - 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.

Copyright © 2021 JBoss by Red Hat. All rights reserved.