Class NoOpStore<K extends Comparable<K>,​V>

    • Constructor Detail

      • NoOpStore

        public NoOpStore()
    • Method Detail

      • save

        public Mono<Void> save​(K key,
                               V value)
        Description copied from interface: Store
        Stores a key value pair.
        Specified by:
        save in interface Store<K extends Comparable<K>,​V>
        Parameters:
        key - The key representing the value.
        value - The value.
        Returns:
        A mono which signals the completion of the storage of the pair.
      • save

        public Mono<Void> save​(Publisher<Tuple2<K,​V>> entryStream)
        Description copied from interface: Store
        Stores key value pairs.
        Specified by:
        save in interface Store<K extends Comparable<K>,​V>
        Parameters:
        entryStream - A flux providing the key value pairs.
        Returns:
        A mono which signals the completion of the storage of the pairs.
      • find

        public Mono<V> find​(K id)
        Description copied from interface: ReadOnlyStore
        Attempts to find the value associated with the provided id.
        Specified by:
        find in interface ReadOnlyStore<K extends Comparable<K>,​V>
        Parameters:
        id - The id to search with.
        Returns:
        A mono, which may or may not contain an associated object.
      • findInRange

        public Flux<V> findInRange​(K start,
                                   K end)
        Description copied from interface: ReadOnlyStore
        Retrieves all stored values with ids within a provided range.
        Specified by:
        findInRange in interface ReadOnlyStore<K extends Comparable<K>,​V>
        Parameters:
        start - The starting key (inclusive).
        end - The ending key (exclusive).
        Returns:
        The stream of values with ids within the provided range.
      • count

        public Mono<Long> count()
        Description copied from interface: ReadOnlyStore
        Retrieves the amount of stored values in the data source currently.
        Specified by:
        count in interface ReadOnlyStore<K extends Comparable<K>,​V>
        Returns:
        A mono which provides the amount of stored values.
      • delete

        public Mono<Void> delete​(K id)
        Description copied from interface: Store
        Deletes a value associated with the provided id.
        Specified by:
        delete in interface Store<K extends Comparable<K>,​V>
        Parameters:
        id - The id of the value to delete.
        Returns:
        A mono which signals the completion of the deletion of the value.
      • delete

        public Mono<Void> delete​(Publisher<K> ids)
        Description copied from interface: Store
        Deletes the values associated with the provided ids.
        Specified by:
        delete in interface Store<K extends Comparable<K>,​V>
        Parameters:
        ids - A stream of ids to delete values for.
        Returns:
        A mono which signals the completion of the deletion of the values.
      • deleteInRange

        public Mono<Void> deleteInRange​(K start,
                                        K end)
        Description copied from interface: Store
        Deletes values within a range of ids.
        Specified by:
        deleteInRange in interface Store<K extends Comparable<K>,​V>
        Parameters:
        start - The starting key (inclusive).
        end - The ending key (exclusive).
        Returns:
        A mono which signals the completion of the deletion of values.
      • deleteAll

        public Mono<Void> deleteAll()
        Description copied from interface: Store
        Deletes all entries in the data source.
        Specified by:
        deleteAll in interface Store<K extends Comparable<K>,​V>
        Returns:
        A mono which signals the completion of the deletion of all values.
      • keys

        public Flux<K> keys()
        Description copied from interface: ReadOnlyStore
        Gets a stream of all keys in the data source.
        Specified by:
        keys in interface ReadOnlyStore<K extends Comparable<K>,​V>
        Returns:
        The stream of keys stored.
      • values

        public Flux<V> values()
        Description copied from interface: ReadOnlyStore
        Gets a stream of all values in the data source.
        Specified by:
        values in interface ReadOnlyStore<K extends Comparable<K>,​V>
        Returns:
        The stream of values stored.
      • invalidate

        public Mono<Void> invalidate()
        Description copied from interface: Store
        Invalidates the contents of the store. Once this is invoked, there is no longer a guarantee that the data in the store is reliable.
        Specified by:
        invalidate in interface Store<K extends Comparable<K>,​V>
        Returns:
        A mono which signals the completion of the invalidation of all values.