Package net.morimekta.providence.storage
Class InMemoryMessageSetStore<K,M extends net.morimekta.providence.PMessage<M>>
- java.lang.Object
-
- net.morimekta.providence.storage.InMemorySetStore<K,M>
-
- net.morimekta.providence.storage.InMemoryMessageSetStore<K,M>
-
- All Implemented Interfaces:
MessageReadOnlyStore<K,M>
,MessageSetStore<K,M>
,ReadOnlyStore<K,M>
,ReadWriteSetStore<K,M>
public class InMemoryMessageSetStore<K,M extends net.morimekta.providence.PMessage<M>> extends InMemorySetStore<K,M> implements MessageSetStore<K,M>
Simple in-memory set storage of providence messages. Uses a local hash map for storing the instances. The store is thread safe through using re-entrant read-write mutex handling, so reading can happen in parallel.
-
-
Constructor Summary
Constructors Constructor Description InMemoryMessageSetStore(java.util.function.Function<M,K> messageToKey)
-
Method Summary
-
Methods inherited from class net.morimekta.providence.storage.InMemorySetStore
containsKey, getAll, keys, putAll, removeAll, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.storage.MessageReadOnlyStore
getAllBuilders, getBuilder
-
Methods inherited from interface net.morimekta.providence.storage.MessageSetStore
putAllBuilders, putBuilder
-
Methods inherited from interface net.morimekta.providence.storage.ReadOnlyStore
containsKey, get, getAll, keys, size
-
Methods inherited from interface net.morimekta.providence.storage.ReadWriteSetStore
put, putAll, remove, removeAll
-
-