Class ResourceBackedMemoryStorageService

All Implemented Interfaces:
Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent, EnumeratableStorageService, StorageCapabilities, StorageService

public class ResourceBackedMemoryStorageService extends AbstractMapBackedStorageService implements StorageCapabilities
Implementation of AbstractMapBackedStorageService that stores data in-memory in a shared data structure after loading it from a resource containing a simple one-line per record, delimited format.

Records do not carry expirations.

The implementation is read-only and throws exceptions for any methods that would mutate the data. The "cleanup" task is instead used to periodically check the source file for updates and reloads the in-memory data under an exclusive lock.