Hi, Igniters!
Can someone give me advice about IGNITE-8715 [1]?
It's a part of IEP-21 [2] about updating to JCache 1.1.

According to JCache 1.0 and 1.1 specifications Cache#close() should clean
up all Closeable objects (CacheLoader, CacheWriter, CacheEntryListener,
ExpiryPolicy) created by factories. And in TCK 1.1 there are tests which
check it.

As I see we haven't such functionality. Am I right?

If so which solution will be the best one? I'm thinking about storing all
closeable objects in something like GridConcurrentHashSet and close all of
them when cache going to be closed.
Thoughts?

[1] https://issues.apache.org/jira/browse/IGNITE-8715
[2]
https://cwiki.apache.org/confluence/display/IGNITE/IEP-21:+JCache+1.1+support
<https://cwiki.apache.org/confluence/display/IGNITE/IEP-21%3A+JCache+1.1+support>

Reply via email to