You have to start a continuous query for every cache separately.

On Thu, Jan 21, 2021 at 1:47 AM Jigna <[email protected]> wrote:

> Hi,
>
> Thank you for sharing the solution. It really helped me to understand the
> continuous queries for remote event listening. I have another question for
> continuous queries.
>
> Once I write the below code, then it will listen the events for
> "cache-name"
> cache.
>
> var cache = ignite.GetOrCreateCache<int, string>("cache-name");
> cache.QueryContinuous(new ContinuousQuery<int, string>(new
> EventListener()));
>
> If I will create a new cache after that, this query would not listen for
> those cache events, which I can understand.
>
> As I mentioned, we have multiple projects and multiple caches. Once I will
> register my continuous queries, it should listen for all the caches( for
> newly added as well). I am not sure how to write my continuous query to
> support all the caches. Would you please guide me?
>
> Thanks,
> Jigna
>
>
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to