Class HazelcastMessageListStorage<K,​M extends net.morimekta.providence.PMessage<M>>

  • All Implemented Interfaces:
    net.morimekta.providence.storage.MessageListReadOnlyStore<K,​M>, net.morimekta.providence.storage.MessageListStore<K,​M>, net.morimekta.providence.storage.ReadOnlyStore<K,​java.util.List<M>>, net.morimekta.providence.storage.ReadWriteStore<K,​java.util.List<M>>

    public class HazelcastMessageListStorage<K,​M extends net.morimekta.providence.PMessage<M>>
    extends java.lang.Object
    implements net.morimekta.providence.storage.MessageListStore<K,​M>
    Note that the hazelcast message store is backed by the PMessage serializable properties, which makes the message field not indexed. If that is needed, use the HazelcastMessageBuilderStorage instead.
    • Constructor Summary

      Constructors 
      Constructor Description
      HazelcastMessageListStorage​(com.hazelcast.core.IMap<K,​java.util.List<M>> hazelcastMap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(K key)  
      java.util.Map<K,​java.util.List<M>> getAll​(java.util.Collection<K> keys)  
      java.util.Collection<K> keys()  
      void putAll​(java.util.Map<K,​java.util.List<M>> values)  
      void removeAll​(java.util.Collection<K> keys)  
      int 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.MessageListReadOnlyStore

        getAllBuilders, getBuilders
      • Methods inherited from interface net.morimekta.providence.storage.MessageListStore

        putAllBuilders, putBuilders
      • Methods inherited from interface net.morimekta.providence.storage.ReadOnlyStore

        get
      • Methods inherited from interface net.morimekta.providence.storage.ReadWriteStore

        put, remove
    • Constructor Detail

      • HazelcastMessageListStorage

        public HazelcastMessageListStorage​(com.hazelcast.core.IMap<K,​java.util.List<M>> hazelcastMap)
    • Method Detail

      • putAll

        public void putAll​(@Nonnull
                           java.util.Map<K,​java.util.List<M>> values)
        Specified by:
        putAll in interface net.morimekta.providence.storage.ReadWriteStore<K,​M extends net.morimekta.providence.PMessage<M>>
      • removeAll

        @Nonnull
        public void removeAll​(java.util.Collection<K> keys)
        Specified by:
        removeAll in interface net.morimekta.providence.storage.ReadWriteStore<K,​M extends net.morimekta.providence.PMessage<M>>
      • getAll

        @Nonnull
        public java.util.Map<K,​java.util.List<M>> getAll​(@Nonnull
                                                               java.util.Collection<K> keys)
        Specified by:
        getAll in interface net.morimekta.providence.storage.ReadOnlyStore<K,​M extends net.morimekta.providence.PMessage<M>>
      • containsKey

        public boolean containsKey​(@Nonnull
                                   K key)
        Specified by:
        containsKey in interface net.morimekta.providence.storage.ReadOnlyStore<K,​M extends net.morimekta.providence.PMessage<M>>
      • keys

        @Nonnull
        public java.util.Collection<K> keys()
        Specified by:
        keys in interface net.morimekta.providence.storage.ReadOnlyStore<K,​M extends net.morimekta.providence.PMessage<M>>
      • size

        public int size()
        Specified by:
        size in interface net.morimekta.providence.storage.ReadOnlyStore<K,​M extends net.morimekta.providence.PMessage<M>>