|
|||||||||||
| 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.AbstractResultCacheEntry
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.AbstractResultCacheEntry |
CACHE_DIRTY, CACHE_INVALID, CACHE_VALID, NO_DEADLINE, request, result, state |
| 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 AbstractResultCacheEntry.CACHE_INVALID). |
java.lang.String[] |
toStringTable()
Get data about this entry |
| Methods inherited from class org.objectweb.cjdbc.controller.cache.result.entries.AbstractResultCacheEntry |
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 cachetimeout - The timeout to use for the deadline (0 for no timeout)| Method Detail |
public void invalidate()
AbstractResultCacheEntryResultSet and turn
state to AbstractResultCacheEntry.CACHE_INVALID).
invalidate in class AbstractResultCacheEntryAbstractResultCacheEntry.invalidate()public java.lang.String getType()
AbstractResultCacheEntry
getType in class AbstractResultCacheEntryAbstractResultCacheEntry.getType()public java.lang.String[] toStringTable()
AbstractResultCacheEntry
toStringTable in class AbstractResultCacheEntryAbstractResultCacheEntry.toStringTable()public long getDeadline()
public long getTimeout()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||