WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
EPG (Electronic programming guide): has data which is frequently updated
MY WEB APP: On load calls the EPG Services and load data into JCS cache
After few minutes Say 15 minutes I have to make a call to EPG Service and
get the new Data
My understanding is when Memory Shrinker Property is set to true and Idle
Time is exceeded
Shrinked thread will remove the Cached Object from memory and invoke
Eventhandlers handleElementEvent(IElementEvent iElementEvent)
And it does invoke the handleElementEvent(IElementEvent iElementEvent)
So I put the code below in handleElementEvent to load Data
event = (ElementEvent) iElementEvent;
element = (CacheElement) event.getSource();
loadDataFromEPG("TVGUIDE"); // reload data into Cache
The issue is Shrinker Thread Calls handleElementEvent only for the first
time when the cached exceed Idle time
After reloading When the newly Cached Object exceeds the
is not invoked.
Is this a BUG ? or Am I doing any thing wrong
How can I resolve this JCS API.
Other option I have is to use Quartz Job to refresh data in Local JCS
cache at specified interval which I want to avoid.