Do cache events fire when using SQL to update tables? My app is listening to a queue for json payloads that have the INS/UPD/DEL: for the cache entries. They are updated using SQL over the respective caches.
On Wed, May 29, 2019 at 8:14 AM Mike Needham <[email protected]> wrote: > I have tried various things, but it never fires for a change in the > cache. that is why I do not think it is set-up correctly > > > On Tue, May 28, 2019 at 9:30 AM Alexandr Shapkin <[email protected]> > wrote: > >> Hi, >> >> You can just save an instance of continuous query somewhere and dispose it >> when required >> >> >> var listener = new SomeListener(); >> var someFilter= new >> CacheEntryEventFilter(_ignite.GetCluster().GetLocalNode(), >> Const.CacheName); >> var query = new ContinuousQuery<string, MyObj>(listener, someFilter); >> >> //save the reference in a private field >> _continuousQuery = cache.QueryContinuous(query); >> >> >> Regardless of a cache value. >> As I understand correctly you have a mixed platform solution (Java + .NET) >> This may lead to additional marshalling configuration. >> >> I will try the posted solution a bit later and reply >> >> >> >> >> -- >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >> > > > -- > *Don't be afraid to be wrong. Don't be afraid to admit you don't have all > the answers. Don't be afraid to say "I think" instead of "I know."* > -- *Don't be afraid to be wrong. Don't be afraid to admit you don't have all the answers. Don't be afraid to say "I think" instead of "I know."*
