event notification for cache clear?

classic Classic list List threaded Threaded
8 messages Options
Sijo Mathew Sijo Mathew
Reply | Threaded
Open this post in threaded view
|

event notification for cache clear?

Hi All, 

is cache notification for clear supported in ignite?

Thanks
Sijo
Evgeniy Rudenko Evgeniy Rudenko
Reply | Threaded
Open this post in threaded view
|

Re: event notification for cache clear?

Hi Mathew,

Do you mean EventType.CACHE_ENTRY_DESTROYED or something different?

On Wed, Oct 16, 2019 at 4:01 PM Sijo Mathew <[hidden email]> wrote:
Hi All, 

is cache notification for clear supported in ignite?

Thanks
Sijo
Sijo Mathew Sijo Mathew
Reply | Threaded
Open this post in threaded view
|

Re: event notification for cache clear?

Evgeniy Rudenko Evgeniy Rudenko
Reply | Threaded
Open this post in threaded view
|

Re: event notification for cache clear?

You will get CACHE_ENTRY_DESTROYED event for each cleared entity.

On Wed, Oct 16, 2019 at 5:53 PM Sijo Mathew <[hidden email]> wrote:
basically a notification for the below call on a cache:

https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteCache.html#clear--

Thanks
Sijo





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


--
Best regards,
Evgeniy
Sijo Mathew Sijo Mathew
Reply | Threaded
Open this post in threaded view
|

Re: event notification for cache clear?

As per the below description, it says, it won't notify listeners and that was
my confusion.

https://static.javadoc.io/javax.cache/cache-api/1.0.0/javax/cache/Cache.html#clear()

I'll test it out, thank you so much, Evgeniy.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Sijo Mathew Sijo Mathew
Reply | Threaded
Open this post in threaded view
|

Re: event notification for cache clear?

That's working, thanks!

Is there a single event to represent the cache clear rather than an event
for each entry in the cache?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Evgeniy Rudenko Evgeniy Rudenko
Reply | Threaded
Open this post in threaded view
|

Re: event notification for cache clear?

I afraid that no. Only CACHE_ENTRY_DESTROYED.

On Wed, Oct 16, 2019 at 6:56 PM Sijo Mathew <[hidden email]> wrote:
That's working, thanks!

Is there a single event to represent the cache clear rather than an event
for each entry in the cache?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


--
Best regards,
Evgeniy
Sijo Mathew Sijo Mathew
Reply | Threaded
Open this post in threaded view
|

Re: event notification for cache clear?

Thank you Evgeniy

On Wed, Oct 16, 2019 at 12:00 PM Evgeniy Rudenko <[hidden email]> wrote:
I afraid that no. Only CACHE_ENTRY_DESTROYED.

On Wed, Oct 16, 2019 at 6:56 PM Sijo Mathew <[hidden email]> wrote:
That's working, thanks!

Is there a single event to represent the cache clear rather than an event
for each entry in the cache?




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


--
Best regards,
Evgeniy