Package dev.enola.data
Class MemoryRepositoryRW<T>
java.lang.Object
dev.enola.data.AbstractMapRepositoryRW<T>
dev.enola.data.MemoryRepositoryRW<T>
- All Implemented Interfaces:
Provider<String,,T> ProviderFromIRI<T>,Repository<T>,RepositoryRW<T>,Store<T>
- Direct Known Subclasses:
ThingMemoryRepositoryRW
@ThreadSafe
public abstract class MemoryRepositoryRW<T>
extends AbstractMapRepositoryRW<T>
implements RepositoryRW<T>
MemoryRepositoryRW is an in-memory
RepositoryRW implemented using a ConcurrentHashMap. It is suitable for us by multiple concurrent threads.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMemoryRepositoryRW(ImmutableList<Trigger<? extends T>> triggers) -
Method Summary
Methods inherited from class dev.enola.data.AbstractMapRepositoryRW
get, getIRI, list, listIRI, store, triggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.data.ProviderFromIRI
getMethods inherited from interface dev.enola.data.Repository
list, listIRI, stream
-
Constructor Details
-
MemoryRepositoryRW
-
-
Method Details
-
map
- Specified by:
mapin classAbstractMapRepositoryRW<T>
-