K - The key type which provides a 1:1 mapping to the value type. This type is also expected to be
Comparable in order to allow for range operations.V - The value type, these follow
JavaBean conventions.public interface Store<K extends Comparable<K>,V> extends ReadOnlyStore<K,V>
LongObjStore| Modifier and Type | Method and Description |
|---|---|
Mono<Void> |
delete(K id)
Deletes a value associated with the provided id.
|
Mono<Void> |
delete(Publisher<K> ids)
Deletes the values associated with the provided ids.
|
Mono<Void> |
deleteAll()
Deletes all entries in the data source.
|
Mono<Void> |
deleteInRange(K start,
K end)
Deletes values within a range of ids.
|
Mono<Void> |
invalidate()
Invalidates the contents of the store.
|
Mono<Void> |
save(K key,
V value)
Stores a key value pair.
|
Mono<Void> |
save(Publisher<Tuple2<K,V>> entryStream)
Stores key value pairs.
|
count, entries, find, findInRange, keys, valuesMono<Void> save(K key, V value)
key - The key representing the value.value - The value.Mono<Void> save(Publisher<Tuple2<K,V>> entryStream)
entryStream - A flux providing the key value pairs.Mono<Void> delete(K id)
id - The id of the value to delete.Mono<Void> delete(Publisher<K> ids)
ids - A stream of ids to delete values for.Mono<Void> deleteInRange(K start, K end)
start - The starting key (inclusive).end - The ending key (exclusive).Mono<Void> deleteAll()