|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.cache.result.entries.AbstractResultCacheEntry 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.AbstractResultCacheEntry |
CACHE_DIRTY, CACHE_INVALID, CACHE_VALID, NO_DEADLINE, request, result, state |
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 AbstractResultCacheEntry.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.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 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()
AbstractResultCacheEntry
ResultSet
and turn
state to AbstractResultCacheEntry.CACHE_INVALID
).
invalidate
in class AbstractResultCacheEntry
AbstractResultCacheEntry.invalidate()
public java.lang.String getType()
AbstractResultCacheEntry
getType
in class AbstractResultCacheEntry
AbstractResultCacheEntry.getType()
public long getDeadline()
public void setDeadline(long deadline)
deadline
- time in ms relative to current timepublic long getTimeout()
public java.lang.String[] toStringTable()
AbstractResultCacheEntry
toStringTable
in class AbstractResultCacheEntry
AbstractResultCacheEntry.toStringTable()
public boolean getKeepIfNotDirty()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |