Class InMemoryMessageSetStore<K,​M extends net.morimekta.providence.PMessage<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 Detail

      • InMemoryMessageSetStore

        public InMemoryMessageSetStore​(java.util.function.Function<M,​K> messageToKey)