Class NoOpLongObjStore<V>

    • Constructor Detail

      • NoOpLongObjStore

        public NoOpLongObjStore()
    • Method Detail

      • saveWithLong

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

        public Mono<Void> saveWithLong​(Publisher<LongObjTuple2<V>> entryStream)
        Description copied from interface: LongObjStore
        Stores key value pairs.
        Specified by:
        saveWithLong in interface LongObjStore<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​(long id)
        Description copied from interface: LongObjStore
        Attempts to find the value associated with the provided id.
        Specified by:
        find in interface LongObjStore<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​(long start,
                                   long end)
        Description copied from interface: LongObjStore
        Retrieves all stored values with ids within a provided range.
        Specified by:
        findInRange in interface LongObjStore<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<Long,​V>
        Returns:
        A mono which provides the amount of stored values.
      • delete

        public Mono<Void> delete​(long id)
        Description copied from interface: LongObjStore
        Deletes a value associated with the provided id.
        Specified by:
        delete in interface LongObjStore<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<Long> ids)
        Description copied from interface: Store
        Deletes the values associated with the provided ids.
        Specified by:
        delete in interface LongObjStore<V>
        Specified by:
        delete in interface Store<Long,​V>
        Parameters:
        ids - A stream of ids to delete values for.
        Returns:
        A mono which signals the completion of the deletion of the values.
      • deleteAll

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

        public Flux<Long> keys()
        Description copied from interface: ReadOnlyStore
        Gets a stream of all keys in the data source.
        Specified by:
        keys in interface ReadOnlyStore<Long,​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<Long,​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<Long,​V>
        Returns:
        A mono which signals the completion of the invalidation of all values.
      • deleteInRange

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