Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1227

Add continuous queries support to C# Hot Rod client

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • JDG 7.2 DR4
    • None
    • HotRod C# client
    • None

    Description

      Client will be able to receive events when changes occor on the resultset of the specified query. Three kind of events are available: JOINING, LEAVING and UPDATED.

      Setup will be as follow:

          ContinuousQueryListener<int, sample_bank_account::User> cql(testCache,"select id from sample_bank_account.User");
          std::function<void(int, sample_bank_account::User)> join = [](int k, sample_bank_account::User u) {
              std::cout << "JOINING: key="<< u.id() << " value="<< u.name() << std::endl;
          };
          std::function<void(int, sample_bank_account::User)> leave =[](int k, sample_bank_account::User u) {
              std::cout << "LEAVING: key="<< u.id() << " value="<< u.name() << std::endl;
          };
          std::function<void(int, sample_bank_account::User)> change =[](int k, sample_bank_account::User u) {
              std::cout << "CHANGING: key="<< u.id() << " value="<< u.name() << std::endl;
          };
      
          cql.setJoiningListener(join);
          cql.setLeavingListener(leave);
          cql.setUpdatedListener(change);
          testCache.addContinuousQueryListener(cql);
      

      Attachments

        Issue Links

          Activity

            People

              vrigamon@redhat.com Vittorio Rigamonti
              pzapataf@redhat.com Pedro Zapata Fernandez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: