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
    --- | ---
    `<K,V extends AbstractEntity<K>,M> MapStorage<K,V,M>` | `getStorage(Class<V> valueType, Class<M> modelType, MapStorageProviderFactory.Flag... flags)` Returns a key-value storage implementation for the particular types.

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

      `close`

- - ### Method Detail

    - #### getStorage

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

      Returns a key-value storage implementation for the particular types.
      Type Parameters:
        `K` - type of the primary key
        `V` - type of the value
      Parameters:
        `name` - Name of the storage
        `flags` -
      Returns:
      Throws:
        `IllegalArgumentException` - If some of the types is not supported by the underlying implementation.

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