private static interface WindowCache.PageRef<T>
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns this reference object's referent.
|
long |
getLastAccess()
Get pseudo time of last access to this cache page
|
PackFile |
getPack()
Get the packfile the referenced cache page is allocated for
|
long |
getPosition()
Get the position of the referenced cache page in the packfile
|
int |
getSize()
Get size of cache page
|
boolean |
isStrongRef()
Whether this is a strong reference.
|
boolean |
kill()
Kill this ref
|
void |
setLastAccess(long time)
Set pseudo time of last access to this cache page
|
T get()
null
.null
if this reference object has been clearedboolean kill()
true
if this reference object was successfully
killed; false
if it was already killedPackFile getPack()
long getPosition()
int getSize()
long getLastAccess()
void setLastAccess(long time)
time
- pseudo time of last access to this cache pageboolean isStrongRef()
true
if this is a strong reference