public class ShardAwareStore<K extends Comparable<K>,V> extends Object implements Store<K,V>
Store
implementation that keeps track of the shard particular entities are cached, in
order to allow orderly cleanup if a specific shard needs to invalidate their cache.Constructor and Description |
---|
ShardAwareStore(Store<K,V> valueStore,
KeyStore<K> keyStore) |
Modifier and Type | Method and Description |
---|---|
Mono<Long> |
count() |
Mono<Void> |
delete(K id) |
Mono<Void> |
delete(Publisher<K> ids) |
Mono<Void> |
deleteAll() |
Mono<Void> |
deleteInRange(K start,
K end) |
Mono<V> |
find(K id) |
Flux<V> |
findInRange(K start,
K end) |
Mono<Void> |
invalidate() |
Flux<K> |
keys() |
Mono<Void> |
save(K key,
V value) |
Mono<Void> |
save(Publisher<Tuple2<K,V>> entryStream) |
String |
toString() |
Flux<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
entries
public Mono<V> find(K id)
find
in interface ReadOnlyStore<K extends Comparable<K>,V>
public Flux<V> findInRange(K start, K end)
findInRange
in interface ReadOnlyStore<K extends Comparable<K>,V>
public Mono<Long> count()
count
in interface ReadOnlyStore<K extends Comparable<K>,V>
public Mono<Void> deleteInRange(K start, K end)
deleteInRange
in interface Store<K extends Comparable<K>,V>
public Flux<K> keys()
keys
in interface ReadOnlyStore<K extends Comparable<K>,V>
public Flux<V> values()
values
in interface ReadOnlyStore<K extends Comparable<K>,V>
public Mono<Void> invalidate()
invalidate
in interface Store<K extends Comparable<K>,V>