public class NoOpLongObjStore<V> extends Object implements LongObjStore<V>
NoOpLongObjStore,
NoOpStore| Constructor and Description |
|---|
NoOpLongObjStore() |
| Modifier and Type | Method and Description |
|---|---|
Mono<Long> |
count()
Retrieves the amount of stored values in the data source currently.
|
Mono<Void> |
delete(long id)
Deletes a value associated with the provided id.
|
Mono<Void> |
delete(Publisher<Long> ids)
Deletes the values associated with the provided ids.
|
Mono<Void> |
deleteAll()
Deletes all entries in the data source.
|
Mono<Void> |
deleteInRange(long start,
long end)
Deletes values within a range of ids.
|
Mono<V> |
find(long id)
Attempts to find the value associated with the provided id.
|
Flux<V> |
findInRange(long start,
long end)
Retrieves all stored values with ids within a provided range.
|
Mono<Void> |
invalidate()
Invalidates the contents of the store.
|
Flux<Long> |
keys()
Gets a stream of all keys in the data source.
|
Mono<Void> |
saveWithLong(long key,
V value)
Stores a key value pair.
|
Mono<Void> |
saveWithLong(Publisher<LongObjTuple2<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, waitdelete, deleteInRange, entries, find, findInRange, longObjEntries, save, savepublic Mono<Void> saveWithLong(long key, V value)
LongObjStoresaveWithLong in interface LongObjStore<V>key - The key representing the value.value - The value.public Mono<Void> saveWithLong(Publisher<LongObjTuple2<V>> entryStream)
LongObjStoresaveWithLong in interface LongObjStore<V>entryStream - A flux providing the key value pairs.public Mono<V> find(long id)
LongObjStorefind in interface LongObjStore<V>id - The id to search with.public Flux<V> findInRange(long start, long end)
LongObjStorefindInRange in interface LongObjStore<V>start - The starting key (inclusive).end - The ending key (exclusive).public Mono<Long> count()
ReadOnlyStorecount in interface ReadOnlyStore<Long,V>public Mono<Void> delete(long id)
LongObjStoredelete in interface LongObjStore<V>id - The id of the value to delete.public Mono<Void> delete(Publisher<Long> ids)
Storepublic Mono<Void> deleteAll()
Storepublic Flux<Long> keys()
ReadOnlyStorekeys in interface ReadOnlyStore<Long,V>public Flux<V> values()
ReadOnlyStorevalues in interface ReadOnlyStore<Long,V>public Mono<Void> invalidate()
Storeinvalidate in interface Store<Long,V>public Mono<Void> deleteInRange(long start, long end)
LongObjStoredeleteInRange in interface LongObjStore<V>start - The starting key (inclusive).end - The ending key (exclusive).