|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.datacache.DataCacheScheduler
public class DataCacheScheduler
Cron-style cache eviction. Understands schedules based on cron format:
minute hour mday month wday
For example:
15,30 6,19 2,10 1 2
Would run at 15 and 30 past the 6AM and 7PM, on the 2nd and 10th
of January when its a Monday.
Constructor Summary | |
---|---|
DataCacheScheduler(OpenJPAConfiguration conf)
|
Method Summary | |
---|---|
protected void |
evict(DataCache cache)
|
int |
getInterval()
The interval time in minutes between cache checks. |
void |
removeFromSchedule(DataCache cache)
Remove the given cache from scheduling. |
void |
run()
|
void |
scheduleEviction(DataCache cache,
String times)
Schedule the given cache for eviction. |
void |
setInterval(int interval)
The interval time in minutes between cache checks. |
void |
stop()
Stop the associated thread if there and stop the current runnable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataCacheScheduler(OpenJPAConfiguration conf)
Method Detail |
---|
public int getInterval()
public void setInterval(int interval)
public void stop()
public void scheduleEviction(DataCache cache, String times)
public void removeFromSchedule(DataCache cache)
public void run()
run
in interface Runnable
protected void evict(DataCache cache)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |