public class ConcurrentHashMapStorageProvider extends Object implements MapStorageProvider
Constructor and Description |
---|
ConcurrentHashMapStorageProvider(ConcurrentHashMapStorageProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<V extends AbstractEntity,M> |
getStorage(Class<M> modelType,
MapStorageProviderFactory.Flag... flags)
Returns a key-value storage implementation for the given types.
|
public ConcurrentHashMapStorageProvider(ConcurrentHashMapStorageProviderFactory factory)
public <V extends AbstractEntity,M> MapStorage<V,M> getStorage(Class<M> modelType, MapStorageProviderFactory.Flag... flags)
MapStorageProvider
getStorage
in interface MapStorageProvider
V
- type of the valueM
- type of the corresponding model (e.g. UserModel
)modelType
- Model typeflags
- Flags of the returned storage. Best effort, flags may be not honored by underlying implementationCopyright © 2021 JBoss by Red Hat. All rights reserved.