Class HazelcastMessageStorage<Key,Message extends net.morimekta.providence.PMessage<Message>>
- java.lang.Object
-
- net.morimekta.providence.storage.hazelcast.HazelcastMessageStorage<Key,Message>
-
- All Implemented Interfaces:
net.morimekta.providence.storage.MessageReadOnlyStore<Key,Message>,net.morimekta.providence.storage.MessageStore<Key,Message>,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>> extends java.lang.Object implements net.morimekta.providence.storage.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 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()voidputAll(java.util.Map<Key,Message> values)voidremoveAll(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
-
removeAll
public void removeAll(java.util.Collection<Key> keys)
-
containsKey
public boolean containsKey(@Nonnull Key key)
-
keys
@Nonnull public java.util.Collection<Key> keys()
-
-