Is there any way to look at L2 sleep mode?

I have the task of linking Oracle Coherence (this is cache software) in my project. One way to use this is to tier 2 cache. I want to see when sleep mode receives results from L2 cache. How can i do this? Both methods will be good: a listener of some kind, if possible, or direct access to the Cache object. Thanks in advance.

+4
source share
2 answers

Coherence Hibernate L2 integration allows you to specify a system property that indicates the configuration of the coherence cache that will be used by the L2 cache. If you specify the β€œnormal” configuration of the reconciliation cache in the same file, this will allow you to access the caches through CacheFactory.getCache.

-Dtangosol.coherence.cacheconfig = fetch cache config.xml -Dtangosol.coherence.hibernate.cacheconfig = fetch cache config.xml

You can download the example here: http://coherence.oracle.com/download/attachments/16730/hibernate-sample-src.jar

+5
source

I want to see when sleep mode receives results from the L2 cache.

Enable maintenance of all second level caching operations. The corresponding category is org.hibernate.cache .

Link

+2
source

All Articles