|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry
org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager
A CacheEntry
that is to be recognized as Eager entry.
Field Summary | |
private AbstractResultCache |
cache
|
private long |
deadline
|
private long |
timeout
|
Fields inherited from class org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry |
request, result, state |
Fields inherited from interface org.objectweb.cjdbc.controller.cache.result.entries.CacheEntry |
CACHE_DIRTY, CACHE_INVALID, CACHE_VALID, NO_DEADLINE |
Constructor Summary | |
ResultCacheEntryEager(AbstractResultCache cache,
SelectRequest request,
ControllerResultSet result,
long timeout)
Create a new Eager Query Cache entry |
Method Summary | |
long |
getDeadline()
Returns the deadline value. |
long |
getTimeout()
Returns the timeout value. |
java.lang.String |
getType()
Get the type of this entry as a string |
void |
invalidate()
Invalidates this cache entry (removes the ResultSet and turn
state to CacheEntry.CACHE_INVALID ). |
java.lang.String[] |
toStringTable()
Get data about this entry |
Methods inherited from class org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry |
getNext, getPrev, getRequest, getResult, getSizeOfResult, getState, isDirty, isValid, markDirty, setNext, setPrev, setResult, setValid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private AbstractResultCache cache
private long timeout
private long deadline
Constructor Detail |
public ResultCacheEntryEager(AbstractResultCache cache, SelectRequest request, ControllerResultSet result, long timeout)
cache
- The query cache we belong torequest
- Select request to cacheresult
- ResultSet to cacheMethod Detail |
public void invalidate()
ResultCacheEntry
ResultSet
and turn
state to CacheEntry.CACHE_INVALID
).
invalidate
in interface CacheEntry
invalidate
in class ResultCacheEntry
ResultCacheEntry.invalidate()
public java.lang.String getType()
ResultCacheEntry
getType
in interface CacheEntry
getType
in class ResultCacheEntry
ResultCacheEntry.getType()
public java.lang.String[] toStringTable()
ResultCacheEntry
toStringTable
in interface CacheEntry
toStringTable
in class ResultCacheEntry
ResultCacheEntry.toStringTable()
public long getDeadline()
public long getTimeout()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |