Class ImportSessionFactoryWrapper

java.lang.Object
org.keycloak.models.map.datastore.ImportSessionFactoryWrapper
All Implemented Interfaces:
KeycloakSessionFactory, InvalidationHandler, ProviderEventManager

public class ImportSessionFactoryWrapper extends Object implements KeycloakSessionFactory
This wraps an existing KeycloakSessionFactory and redirects all calls to a MapStorageProvider to ConcurrentHashMapStorageProvider. This allows all operations to be in-memory. The final contents of the store can then be copied over to the final store once the import is complete.

For this to work, the CHM provider needs to be registered as a provider.

Author:
Alexander Schwartz