[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-user
Subject: event handler callback not getting called
From: pushkar priyadarshi <priyadarshi.pushkar () gmail ! com>
Date: 2014-03-18 11:41:25
Message-ID: CAHA=g40Q=0AYfN8yqAigAtPr7-8qngfQJ+kJowKUyHDjY05eTw () mail ! gmail ! com
[Download RAW message or body]
Hi ,
I have used the code from example at
http://commons.apache.org/proper/commons-jcs/ElementEventHandling.html for
event handling.
But when an element is evicted from JCS cache im not getting any callback
though i know cache eviction has happened for element for sure.
Is there anything else that i need to do apart from what is mentioned in
the example.
CacheAccess<String, String> jcs = JCS.getInstance( "myregion" );
. . .
MyEventHandler meh = new MyEventHandler();
// this should add the event handler to all items as
//they are created.
// jcs.getDefaultElementAttributes returns a copy not a reference
IElementAttributes attributes = jcs.getDefaultElementAttributes();
attributes.addElementEventHandler( meh );
jcs.setDefaultElementAttributes( attributes );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic