Public Member Functions | |
ResultCacheEntryEager (AbstractResultCache cache, SelectRequest request, ControllerResultSet result, long timeout) | |
void | invalidate () |
String | getType () |
String[] | toStringTable () |
long | getDeadline () |
long | getTimeout () |
CacheEntry
that is to be recognized as Eager entry.
Definition at line 40 of file ResultCacheEntryEager.java.
|
Create a new Eager Query Cache entry
Definition at line 53 of file ResultCacheEntryEager.java. 00055 { 00056 super(request, result); 00057 this.cache = cache; 00058 if (timeout > 0) 00059 this.deadline = System.currentTimeMillis() + timeout; 00060 else 00061 this.deadline = NO_DEADLINE; 00062 }
|
|
Returns the deadline value.
Definition at line 99 of file ResultCacheEntryEager.java. Referenced by org.objectweb.cjdbc.controller.cache.result.ResultCache.addToCache(), org.objectweb.cjdbc.controller.cache.result.threads.EagerCacheThread.run(), and org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager.toStringTable(). 00100 {
00101 return deadline;
00102 }
|
|
Returns the timeout value.
Definition at line 109 of file ResultCacheEntryEager.java. 00110 {
00111 return timeout;
00112 }
|
|
Implements org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry. Definition at line 80 of file ResultCacheEntryEager.java. Referenced by org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager.toStringTable(). 00081 { 00082 return "Eager"; 00083 }
|
|
Implements org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry. Definition at line 67 of file ResultCacheEntryEager.java. References org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.removeFromCache(). 00068 { 00069 state = CACHE_INVALID; 00070 if(cache!=null) 00071 cache.removeFromCache(request); 00072 if (result != null) 00073 result = null; 00074 cache = null;; 00075 }
|
|
Implements org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry. Definition at line 88 of file ResultCacheEntryEager.java. References org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager.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.ResultCacheEntryEager.getType(). 00089 { 00090 return new String[]{request.getSQL(), getType(), getState(), 00091 new Date(getDeadline()).toString(), "" + getSizeOfResult()}; 00092 }
|