com.aelitis.azureus.core.diskmanager.cache.impl
Class CacheEntry
java.lang.Object
com.aelitis.azureus.core.diskmanager.cache.impl.CacheEntry
public class CacheEntry
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CT_DATA_WRITE
protected static final int CT_DATA_WRITE
- See Also:
- Constant Field Values
CT_READ_AHEAD
protected static final int CT_READ_AHEAD
- See Also:
- Constant Field Values
file
protected CacheFileWithCache file
buffer
protected DirectByteBuffer buffer
offset
protected final long offset
size
protected int size
buffer_pos
protected int buffer_pos
buffer_limit
protected int buffer_limit
dirty
protected boolean dirty
last_used
protected long last_used
entry_type
protected int entry_type
usage_count
protected int usage_count
CacheEntry
protected CacheEntry(int _entry_type,
CacheFileWithCache _file,
DirectByteBuffer _buffer,
long _offset,
int _size)
getFile
public CacheFileWithCache getFile()
getFilePosition
public long getFilePosition()
getLength
public int getLength()
getBuffer
public DirectByteBuffer getBuffer()
isDirty
public boolean isDirty()
setClean
public void setClean()
resetBufferPosition
protected void resetBufferPosition()
used
protected void used()
getLastUsed
protected long getLastUsed()
getUsageCount
protected int getUsageCount()
getType
protected int getType()
getString
protected String getString()