3 Replies Latest reply on Jan 7, 2014 2:41 PM by sannegrinovero

    Async query DSL

    furic

      Hello

      Is it possible to execute the query in async way and provide callback to be notified about result(s) as non-blocking stream ?

       

      Thanks

        • 1. Re: Async query DSL
          wdfink

          Could you be a bit more specific and explain the use-case and what you try to achieve?

          • 2. Re: Async query DSL
            furic

            There is async version of put and get Cache methods, I'm after the same functionality for DSL query list() method, something like this :

             

            Future<PartialQueryResult<String>>  futureResult =  query.listAsync() ;

            futureResult.subscribe(new Callback(){

                 public void onResult(PartialQueryResult<String> result){

                 }

            })

             

             

            class <T> PartialQueryResult{

            List<T> list();

            boolean isLast

            }

            • 3. Re: Async query DSL
              sannegrinovero

              Hi Alexander,

              we call that "continuous queries" and while it's not available now we expect to make such a feature for Infinispan 7.

              Current master matches Infinispan 7, so it would be a great time to join the developer mailing list, and suggest either patches or just participate in the brainstorming around this subject.

               

              Search JBoss Community