|
|||||||||||
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.ResultCacheEntryRelaxed
A CacheEntry
that is to be recognized as Relaxed entry.
Field Summary | |
private long |
deadline
|
private boolean |
keepIfNotDirty
|
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 | |
ResultCacheEntryRelaxed(SelectRequest request,
ControllerResultSet result,
long timeout,
boolean keepIfNotDirty)
Create a new Relaxed Query Cache entry |
Method Summary | |
long |
getDeadline()
Get the expiration deadline |
boolean |
getKeepIfNotDirty()
Should the entry must be kept in the cache if the entry is not dirty once the timeout has expired. |
long |
getTimeout()
Get the timeout for this entry. |
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 ). |
void |
setDeadline(long deadline)
Set the expiration deadline |
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 long timeout
private long deadline
private boolean keepIfNotDirty
Constructor Detail |
public ResultCacheEntryRelaxed(SelectRequest request, ControllerResultSet result, long timeout, boolean keepIfNotDirty)
request
- Select request to cacheresult
- ResultSet to cachetimeout
- timeout in ms for this entrykeepIfNotDirty
- true if entry must be kept in cache if not dirty once
timeout has expiredMethod 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 long getDeadline()
public void setDeadline(long deadline)
deadline
- time in ms relative to current timepublic long getTimeout()
public java.lang.String[] toStringTable()
ResultCacheEntry
toStringTable
in interface CacheEntry
toStringTable
in class ResultCacheEntry
ResultCacheEntry.toStringTable()
public boolean getKeepIfNotDirty()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |