public class NoOpStore<K extends Comparable<K>,V> extends Object implements Store<K,V>
NoOpStore,
NoOpLongObjStore| Constructor and Description |
|---|
NoOpStore() |
| Modifier and Type | Method and Description |
|---|---|
Mono<Long> |
count()
Retrieves the amount of stored values in the data source currently.
|
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<V> |
find(K id)
Attempts to find the value associated with the provided id.
|
Flux<V> |
findInRange(K start,
K end)
Retrieves all stored values with ids within a provided range.
|
Mono<Void> |
invalidate()
Invalidates the contents of the store.
|
Flux<K> |
keys()
Gets a stream of all keys in the data source.
|
Mono<Void> |
save(K key,
V value)
Stores a key value pair.
|
Mono<Void> |
save(Publisher<Tuple2<K,V>> entryStream)
Stores key value pairs.
|
Flux<V> |
values()
Gets a stream of all values in the data source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitentriespublic Mono<Void> save(K key, V value)
Storepublic Mono<Void> save(Publisher<Tuple2<K,V>> entryStream)
Storepublic Mono<V> find(K id)
ReadOnlyStorefind in interface ReadOnlyStore<K extends Comparable<K>,V>id - The id to search with.public Flux<V> findInRange(K start, K end)
ReadOnlyStorefindInRange in interface ReadOnlyStore<K extends Comparable<K>,V>start - The starting key (inclusive).end - The ending key (exclusive).public Mono<Long> count()
ReadOnlyStorecount in interface ReadOnlyStore<K extends Comparable<K>,V>public Mono<Void> delete(K id)
Storepublic Mono<Void> delete(Publisher<K> ids)
Storepublic Mono<Void> deleteInRange(K start, K end)
StoredeleteInRange in interface Store<K extends Comparable<K>,V>start - The starting key (inclusive).end - The ending key (exclusive).public Mono<Void> deleteAll()
Storepublic Flux<K> keys()
ReadOnlyStorekeys in interface ReadOnlyStore<K extends Comparable<K>,V>public Flux<V> values()
ReadOnlyStorevalues in interface ReadOnlyStore<K extends Comparable<K>,V>public Mono<Void> invalidate()
Storeinvalidate in interface Store<K extends Comparable<K>,V>