Class HazelcastMessageStorage<Key,Message extends net.morimekta.providence.PMessage<Message,Field>,Field extends net.morimekta.providence.descriptor.PField>
- java.lang.Object
-
- net.morimekta.providence.storage.hazelcast.HazelcastMessageStorage<Key,Message,Field>
-
- All Implemented Interfaces:
net.morimekta.providence.storage.MessageReadOnlyStore<Key,Message,Field>,net.morimekta.providence.storage.MessageStore<Key,Message,Field>,net.morimekta.providence.storage.ReadOnlyStore<Key,Message>,net.morimekta.providence.storage.ReadWriteStore<Key,Message>
public class HazelcastMessageStorage<Key,Message extends net.morimekta.providence.PMessage<Message,Field>,Field extends net.morimekta.providence.descriptor.PField> extends java.lang.Object implements net.morimekta.providence.storage.MessageStore<Key,Message,Field>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 theHazelcastMessageBuilderStorageinstead.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 Summary
Constructors Constructor Description HazelcastMessageStorage(com.hazelcast.core.IMap<Key,Message> hazelcastMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Key key)java.util.Map<Key,Message>getAll(java.util.Collection<Key> keys)java.util.Collection<Key>keys()java.util.Map<Key,Message>putAll(java.util.Map<Key,Message> values)java.util.Map<Key,Message>removeAll(java.util.Collection<Key> keys)intsize()-
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
-
-
-
-
Method Detail
-
putAll
@Nonnull public java.util.Map<Key,Message> putAll(@Nonnull java.util.Map<Key,Message> values)
-
containsKey
public boolean containsKey(@Nonnull Key key)
-
keys
@Nonnull public java.util.Collection<Key> keys()
-
-