Class HazelcastMessageStorage<Key,​Message extends PMessage<Message>>

  • All Implemented Interfaces:
    MessageReadOnlyStore<Key,​Message>, MessageStore<Key,​Message>, ReadOnlyStore<Key,​Message>, ReadWriteStore<Key,​Message>

    public class HazelcastMessageStorage<Key,​Message extends PMessage<Message>>
    extends java.lang.Object
    implements MessageStore<Key,​Message>
    Note that the hazelcast message store is backed by the PMessage serializable property, which makes the message fields not indexable. If that is needed, use the HazelcastMessageBuilderStorage instead.

    On the other hand, this type of map is somewhat more efficient, and does not require the message to be generated with hazelcast portable support.

    • Constructor Detail

      • HazelcastMessageStorage

        public HazelcastMessageStorage​(com.hazelcast.core.IMap<Key,​Message> hazelcastMap)
    • Method Detail

      • getAll

        @Nonnull
        public java.util.Map<Key,​Message> getAll​(@Nonnull
                                                       java.util.Collection<Key> keys)
        Description copied from interface: ReadOnlyStore
        Look up a set of keys from the storage.
        Specified by:
        getAll in interface ReadOnlyStore<Key,​Message extends PMessage<Message>>
        Parameters:
        keys - The keys to look up.
        Returns:
        Map of all the found key value pairs. Values not found should not have an entry in the result map (no key -> null mapping).