Class HazelcastMessageSetStorage<Key,Message extends net.morimekta.providence.PMessage<Message>>
- java.lang.Object
-
- net.morimekta.providence.storage.hazelcast.HazelcastMessageSetStorage<Key,Message>
-
- All Implemented Interfaces:
net.morimekta.providence.storage.MessageReadOnlyStore<Key,Message>,net.morimekta.providence.storage.MessageSetStore<Key,Message>,net.morimekta.providence.storage.ReadOnlyStore<Key,Message>,net.morimekta.providence.storage.ReadWriteSetStore<Key,Message>
public class HazelcastMessageSetStorage<Key,Message extends net.morimekta.providence.PMessage<Message>> extends java.lang.Object implements net.morimekta.providence.storage.MessageSetStore<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 HazelcastMessageSetStorage(java.util.function.Function<Message,Key> messageToKey, 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.Collection<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
-
putAll
public void putAll(@Nonnull java.util.Collection<Message> values)
-
removeAll
public void removeAll(java.util.Collection<Key> keys)
-
containsKey
public boolean containsKey(@Nonnull Key key)
-
keys
@Nonnull public java.util.Collection<Key> keys()
-
-