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 Details

    • 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:
    • find

      io.smallrye.mutiny.Uni<MutinyQueryResult<R>> find()
      Executes the query
    • findContinuously

      <R> io.smallrye.mutiny.Multi<CacheContinuousQueryEvent<K,R>> findContinuously()
      Executes the query and returns a Multi with the results
      Returns:
      a Multi which produces CacheContinuousQueryEvent items.
    • 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

      <T> io.smallrye.mutiny.Multi<CacheEntryProcessorResult<K,T>> process(MutinyCacheEntryProcessor<K,V,T> processor, CacheProcessorOptions options)
      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: