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, wait
entries
public Mono<Void> save(K key, V value)
Store
public Mono<Void> save(Publisher<Tuple2<K,V>> entryStream)
Store
public Mono<V> find(K id)
ReadOnlyStore
find
in interface ReadOnlyStore<K extends Comparable<K>,V>
id
- The id to search with.public Flux<V> findInRange(K start, K end)
ReadOnlyStore
findInRange
in interface ReadOnlyStore<K extends Comparable<K>,V>
start
- The starting key (inclusive).end
- The ending key (exclusive).public Mono<Long> count()
ReadOnlyStore
count
in interface ReadOnlyStore<K extends Comparable<K>,V>
public Mono<Void> delete(K id)
Store
public Mono<Void> delete(Publisher<K> ids)
Store
public Mono<Void> deleteInRange(K start, K end)
Store
deleteInRange
in interface Store<K extends Comparable<K>,V>
start
- The starting key (inclusive).end
- The ending key (exclusive).public Mono<Void> deleteAll()
Store
public Flux<K> keys()
ReadOnlyStore
keys
in interface ReadOnlyStore<K extends Comparable<K>,V>
public Flux<V> values()
ReadOnlyStore
values
in interface ReadOnlyStore<K extends Comparable<K>,V>
public Mono<Void> invalidate()
Store
invalidate
in interface Store<K extends Comparable<K>,V>