Interface LongObjStore<V>

    • Method Detail

      • save

        default Mono<Void> save​(Long key,
                                V value)
        Description copied from interface: Store
        Stores a key value pair.
        Specified by:
        save in interface Store<Long,​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

        Mono<Void> saveWithLong​(long key,
                                V value)
        Stores a key value pair.
        Parameters:
        key - The key representing the value.
        value - The value.
        Returns:
        A mono which signals the completion of the storage of the pair.
      • save

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

        Mono<Void> saveWithLong​(Publisher<LongObjTuple2<V>> entryStream)
        Stores key value pairs.
        Parameters:
        entryStream - A flux providing the key value pairs.
        Returns:
        A mono which signals the completion of the storage of the pairs.
      • find

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

        Mono<V> find​(long id)
        Attempts to find the value associated with the provided id.
        Parameters:
        id - The id to search with.
        Returns:
        A mono, which may or may not contain an associated object.
      • findInRange

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

        Flux<V> findInRange​(long start,
                            long end)
        Retrieves all stored values with ids within a provided range.
        Parameters:
        start - The starting key (inclusive).
        end - The ending key (exclusive).
        Returns:
        The stream of values with ids within the provided range.
      • delete

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

        Mono<Void> delete​(long id)
        Deletes a value associated with the provided id.
        Parameters:
        id - The id of the value to delete.
        Returns:
        A mono which signals the completion of the deletion of the value.
      • delete

        Mono<Void> delete​(Publisher<Long> ids)
        Description copied from interface: Store
        Deletes the values associated with the provided ids.
        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.
      • deleteInRange

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

        Mono<Void> deleteInRange​(long start,
                                 long end)
        Deletes values within a range of ids.
        Parameters:
        start - The starting key (inclusive).
        end - The ending key (exclusive).
        Returns:
        A mono which signals the completion of the deletion of values.
      • longObjEntries

        default Flux<LongObjTuple2<V>> longObjEntries()
        Gets a stream of all entries in the data source.
        Returns:
        The stream of all entries stored.