chenatu
chenatu

Reputation: 847

Apache Ignite Continuous Queries on AtomicLong

Can continuous query in Apache Ignite watch updates over AtomicLong type?

Can I just treat AtomicLong as common key value pair in Ignite?

Upvotes: 1

Views: 141

Answers (1)

Valentin Kulichenko
Valentin Kulichenko

Reputation: 8390

This is not possible for IgniteAtomicLong, but you can easily create your own atomic counter - create a cache, put a single entry with Long value and use IgniteCache.invoke(..) method to atomically update it. In this case you can subscribe for updates with continuous queries.

Upvotes: 2

Related Questions