Public Member Functions | |
ResultCacheEntryRelaxed (SelectRequest request, ControllerResultSet result, long timeout, boolean keepIfNotDirty) | |
void | invalidate () |
String | getType () |
long | getDeadline () |
void | setDeadline (long deadline) |
long | getTimeout () |
String[] | toStringTable () |
boolean | getKeepIfNotDirty () |
CacheEntry
that is to be recognized as Relaxed entry.
Definition at line 39 of file ResultCacheEntryRelaxed.java.
|
Create a new Relaxed Query Cache entry
Definition at line 54 of file ResultCacheEntryRelaxed.java. 00056 { 00057 super(request, result); 00058 this.timeout = timeout; 00059 this.deadline = System.currentTimeMillis() + timeout; 00060 this.keepIfNotDirty = keepIfNotDirty; 00061 }
|
|
Get the expiration deadline
Definition at line 84 of file ResultCacheEntryRelaxed.java. Referenced by org.objectweb.cjdbc.controller.cache.result.ResultCache.addToCache(), org.objectweb.cjdbc.controller.cache.result.threads.RelaxedCacheThread.run(), and org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.toStringTable(). 00085 {
00086 return deadline;
00087 }
|
|
Should the entry must be kept in the cache if the entry is not dirty once the timeout has expired.
Definition at line 124 of file ResultCacheEntryRelaxed.java. Referenced by org.objectweb.cjdbc.controller.cache.result.threads.RelaxedCacheThread.run(). 00125 {
00126 return keepIfNotDirty;
00127 }
|
|
Get the timeout for this entry.
Definition at line 104 of file ResultCacheEntryRelaxed.java. Referenced by org.objectweb.cjdbc.controller.cache.result.threads.RelaxedCacheThread.run(). 00105 {
00106 return timeout;
00107 }
|
|
Implements org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry. Definition at line 74 of file ResultCacheEntryRelaxed.java. Referenced by org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.toStringTable(). 00075 { 00076 return "Relaxed"; 00077 }
|
|
Implements org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry. Definition at line 66 of file ResultCacheEntryRelaxed.java. 00067 { 00068 state = CACHE_DIRTY; 00069 }
|
|
Set the expiration deadline
Definition at line 94 of file ResultCacheEntryRelaxed.java. Referenced by org.objectweb.cjdbc.controller.cache.result.threads.RelaxedCacheThread.run(). 00095 {
00096 this.deadline = deadline;
00097 }
|
|
Implements org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry. Definition at line 112 of file ResultCacheEntryRelaxed.java. References org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getDeadline(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getSizeOfResult(), org.objectweb.cjdbc.common.sql.AbstractRequest.getSQL(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getState(), and org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.getType(). 00113 { 00114 return new String[]{request.getSQL(), getType(), getState(), 00115 new Date(getDeadline()).toString(), "" + getSizeOfResult()}; 00116 }
|