Package net.morimekta.providence.storage
Class InMemoryMessageStore<K,M extends PMessage<M>>
- java.lang.Object
-
- net.morimekta.providence.storage.InMemoryStore<K,M>
-
- net.morimekta.providence.storage.InMemoryMessageStore<K,M>
-
- All Implemented Interfaces:
MessageReadOnlyStore<K,M>
,MessageStore<K,M>
,ReadOnlyStore<K,M>
,ReadWriteStore<K,M>
public class InMemoryMessageStore<K,M extends PMessage<M>> extends InMemoryStore<K,M> implements MessageStore<K,M>
Simple in-memory 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 InMemoryMessageStore()
-
Method Summary
-
Methods inherited from class net.morimekta.providence.storage.InMemoryStore
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.MessageStore
putAllBuilders, putBuilder
-
Methods inherited from interface net.morimekta.providence.storage.ReadOnlyStore
containsKey, get, getAll, keys, size
-
Methods inherited from interface net.morimekta.providence.storage.ReadWriteStore
put, putAll, remove, removeAll
-
-