|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.base.RemoveExpiredThread
This class removes the expired objects from the externalizer cache table. The parameters used to verify when an object is expired (cachedObjectsExpirationTime) and the frequency to remove the objects from cache (removeExpiredFromCacheEvery) are defined in the dse.ini.
Constructor Summary | |
---|---|
RemoveExpiredThread()
RemoveExpiredThread default constructor. |
|
RemoveExpiredThread(long cachedObjectsExpirationTime,
long removeExpiredFromCacheEvery)
RemoveExpiredThread constructor. |
Method Summary | |
---|---|
long |
getCachedObjectsExpirationTime()
Returns the cachedObjectsExpirationTime. |
long |
getRemoveExpiredFromCacheEvery()
Returns the removeExpiredFromCacheEvery. |
protected boolean |
isExpired(long createdAt)
Verifies if the long passed as parameter corresponds to an expired object. |
protected void |
removingPolicy()
Removes expired objects from cache table using the next policy: For each externalizer, verifies if the cache is enabled and removes all the expired objects from cache table. |
void |
run()
Removes expired objects from cache table, this thread is activated using the frequency indicated by parameter removeExpiredFromCacheEvery defined in the dse.ini file. |
void |
setCachedObjectsExpirationTime(long cachedObjectsExpirationTime)
Sets the cachedObjectsExpirationTime. |
void |
setRemoveExpiredFromCacheEvery(long removeExpiredFromCacheEvery)
Sets the removeExpiredFromCacheEvery. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RemoveExpiredThread()
public RemoveExpiredThread(long cachedObjectsExpirationTime, long removeExpiredFromCacheEvery)
cachedObjectsExpirationTime
- long Cached objects expiration time.removeExpiredFromCacheEvery
- long Frequency of thread activation.Method Detail |
public void run()
run
in interface java.lang.Runnable
protected void removingPolicy() throws java.lang.Exception
java.lang.Exception
- generic exception.protected boolean isExpired(long createdAt)
createdAt
- long value to verify
public long getCachedObjectsExpirationTime()
public long getRemoveExpiredFromCacheEvery()
public void setCachedObjectsExpirationTime(long cachedObjectsExpirationTime)
cachedObjectsExpirationTime
- The cachedObjectsExpirationTime to setpublic void setRemoveExpiredFromCacheEvery(long removeExpiredFromCacheEvery)
removeExpiredFromCacheEvery
- The removeExpiredFromCacheEvery to set
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |