public class ConcurrentHashMapStorageProvider extends Object implements MapStorageProvider
MapStorageProvider.Flag
Constructor and Description |
---|
ConcurrentHashMapStorageProvider() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is called when the server shuts down.
|
MapStorageProvider |
create(KeycloakSession session) |
String |
getId() |
<K,V extends AbstractEntity<K>> |
getStorage(String name,
Class<K> keyType,
Class<V> valueType,
MapStorageProvider.Flag... flags)
Returns a key-value storage
|
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order
public MapStorageProvider create(KeycloakSession session)
create
in interface ProviderFactory<MapStorageProvider>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<MapStorageProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<MapStorageProvider>
public void close()
ProviderFactory
close
in interface Provider
close
in interface ProviderFactory<MapStorageProvider>
public String getId()
getId
in interface ProviderFactory<MapStorageProvider>
public <K,V extends AbstractEntity<K>> MapStorage<K,V> getStorage(String name, Class<K> keyType, Class<V> valueType, MapStorageProvider.Flag... flags)
MapStorageProvider
getStorage
in interface MapStorageProvider
K
- type of the primary keyV
- type of the valuename
- Name of the storageCopyright © 2020 JBoss by Red Hat. All rights reserved.