Package net.morimekta.providence.storage
Interface ReadWriteSetStore<K,V>
-
- Type Parameters:
K
- Key to use for gathering information.V
- Value to fetch, that is a generic method.
- All Superinterfaces:
ReadOnlyStore<K,V>
- All Known Subinterfaces:
MessageSetStore<K,M>
- All Known Implementing Classes:
DirectoryMessageSetStore
,HazelcastMessageSetBuilderStorage
,HazelcastMessageSetStorage
,InMemoryMessageSetStore
,InMemorySetStore
public interface ReadWriteSetStore<K,V> extends ReadOnlyStore<K,V>
Interface for a store that acts as a set of unique values with a natural key per item. Note that it is only the setter methods that differs from a normal read-write map store.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
put(V value)
void
putAll(java.util.Collection<V> values)
default void
remove(K key)
Remove the key value pair from the store.void
removeAll(java.util.Collection<K> keys)
Remove the values for the given keys.-
Methods inherited from interface net.morimekta.providence.storage.ReadOnlyStore
containsKey, get, getAll, keys, size
-
-
-
-
Method Detail
-
putAll
void putAll(@Nonnull java.util.Collection<V> values)
- Parameters:
values
- Put all key value pairs form this map into the storage.
-
removeAll
void removeAll(java.util.Collection<K> keys)
Remove the values for the given keys.- Parameters:
keys
- Map of removed key value pairs.
-
put
default void put(@Nonnull V value)
- Parameters:
value
- The value to add.
-
remove
default void remove(@Nonnull K key)
Remove the key value pair from the store.- Parameters:
key
- The key to remove.
-
-