Interface MutinyQuery<K,​V,​R>

  • Type Parameters:
    K -
    V -
    R - the result type for the query

    public interface MutinyQuery<K,​V,​R>
    Parameterized Query builder
    • Method Detail

      • param

        MutinyQuery<K,​V,​R> param​(String name,
                                             Object value)
        Sets the named parameter to the specified value
        Parameters:
        name -
        value -
        Returns:
      • skip

        MutinyQuery<K,​V,​R> skip​(long skip)
        Skips the first specified number of results
        Parameters:
        skip -
        Returns:
      • limit

        MutinyQuery<K,​V,​R> limit​(int limit)
        Limits the number of results
        Parameters:
        limit -
        Returns:
      • execute

        io.smallrye.mutiny.Uni<Long> execute()
        Executes the manipulation statement (UPDATE, REMOVE)
        Returns:
        the number of entries that were processed
      • process

        default <T> io.smallrye.mutiny.Multi<CacheEntryProcessorResult<K,​T>> process​(MutinyCacheEntryProcessor<K,​V,​T> processor)
        Processes entries matched by the query using a MutinyCacheEntryProcessor. The query MUST NOT use projections. If the cache is remote, entries will be retrieved, manipulated locally and put back. The query MUST NOT use projections.
        Parameters:
        processor - the entry consumer task
      • process

        default <T> io.smallrye.mutiny.Multi<CacheEntryProcessorResult<K,​T>> process​(CacheProcessor processor)
        Processes entries matched by the query using a named CacheProcessor. The query MUST NOT use projections. If the cache processor returns a non-null value for an entry, it will be returned through the publisher.
        Type Parameters:
        T -
        Parameters:
        processor - the entry processor
        Returns:
      • process

        <T> io.smallrye.mutiny.Multi<CacheEntryProcessorResult<K,​T>> process​(CacheProcessor processor,
                                                                                   CacheProcessorOptions options)
        Processes entries matched by the query using a named CacheProcessor. The query MUST NOT use projections. If the cache processor returns a non-null value for an entry, it will be returned through the publisher.
        Type Parameters:
        T -
        Parameters:
        processor - the named entry processor
        options -
        Returns: