public class ForwardingStore<V> extends Object implements LongObjStore<V>
LongObjStore which is a data connection that delegates to another, generic
one.LongObjStore| Constructor and Description |
|---|
ForwardingStore(Store<Long,V> toForward)
Constructs the data connection.
|
| 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(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<Void> |
deleteInRange(Long start,
Long end)
Deletes values within a range of ids.
|
Flux<Tuple2<Long,V>> |
entries()
Gets a stream of all entries in the data source.
|
Mono<V> |
find(long id)
Attempts to find the value associated with the provided id.
|
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.
|
Flux<V> |
findInRange(Long start,
Long end)
Retrieves all stored values with ids within a provided range.
|
protected Store<Long,V> |
getOriginal()
Gets the original, generic data connection.
|
Mono<Void> |
invalidate()
Invalidates the contents of the store.
|
Flux<Long> |
keys()
Gets a stream of all keys in the data source.
|
Flux<LongObjTuple2<V>> |
longObjEntries()
Gets a stream of all entries in the data source.
|
Mono<Void> |
save(Long key,
V value)
Stores a key value pair.
|
Mono<Void> |
save(Publisher<Tuple2<Long,V>> entryStream)
Stores key value pairs.
|
Mono<Void> |
saveWithLong(long key,
V value)
Stores a key value pair.
|
Mono<Void> |
saveWithLong(Publisher<LongObjTuple2<V>> entryStream)
Stores key value pairs.
|
String |
toString() |
Flux<V> |
values()
Gets a stream of all values in the data source.
|
protected Store<Long,V> getOriginal()
public Mono<Void> save(Long key, V value)
Storepublic Mono<Void> saveWithLong(long key, V value)
LongObjStoresaveWithLong in interface LongObjStore<V>key - The key representing the value.value - The value.public Mono<Void> save(Publisher<Tuple2<Long,V>> entryStream)
Storepublic 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)
ReadOnlyStorefind in interface LongObjStore<V>find in interface ReadOnlyStore<Long,V>id - The id to search with.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)
ReadOnlyStorefindInRange in interface LongObjStore<V>findInRange in interface ReadOnlyStore<Long,V>start - The starting key (inclusive).end - The ending key (exclusive).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)
Storepublic 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> deleteInRange(Long start, Long end)
StoredeleteInRange in interface LongObjStore<V>deleteInRange in interface Store<Long,V>start - The starting key (inclusive).end - The ending key (exclusive).public Mono<Void> deleteInRange(long start, long end)
LongObjStoredeleteInRange in interface LongObjStore<V>start - The starting key (inclusive).end - The ending key (exclusive).public Mono<Void> deleteAll()
Storepublic Flux<Long> keys()
ReadOnlyStorekeys in interface ReadOnlyStore<Long,V>public Flux<V> values()
ReadOnlyStorevalues in interface ReadOnlyStore<Long,V>public Flux<Tuple2<Long,V>> entries()
ReadOnlyStoreentries in interface LongObjStore<V>entries in interface ReadOnlyStore<Long,V>public Mono<Void> invalidate()
Storeinvalidate in interface Store<Long,V>public Flux<LongObjTuple2<V>> longObjEntries()
LongObjStorelongObjEntries in interface LongObjStore<V>