class DeltaBaseCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DeltaBaseCache.Entry |
private static class |
DeltaBaseCache.Slot |
Modifier and Type | Field and Description |
---|---|
private DeltaBaseCache.Slot[] |
cache |
private static int |
CACHE_SZ |
(package private) static java.lang.ref.SoftReference<DeltaBaseCache.Entry> |
DEAD |
private static int |
defaultMaxByteCount |
private DeltaBaseCache.Slot |
lruHead |
private DeltaBaseCache.Slot |
lruTail |
private int |
maxByteCount |
private int |
openByteCount |
Constructor and Description |
---|
DeltaBaseCache() |
Modifier and Type | Method and Description |
---|---|
private void |
clearEntry(DeltaBaseCache.Slot e) |
(package private) DeltaBaseCache.Entry |
get(PackFile pack,
long position) |
private static int |
hash(long position) |
private void |
moveToHead(DeltaBaseCache.Slot e) |
(package private) static void |
reconfigure(WindowCacheConfig cfg) |
private void |
releaseMemory() |
(package private) void |
store(PackFile pack,
long position,
byte[] data,
int objectType) |
private void |
unlink(DeltaBaseCache.Slot e) |
private static final int CACHE_SZ
static final java.lang.ref.SoftReference<DeltaBaseCache.Entry> DEAD
private static volatile int defaultMaxByteCount
private final int maxByteCount
private final DeltaBaseCache.Slot[] cache
private DeltaBaseCache.Slot lruHead
private DeltaBaseCache.Slot lruTail
private int openByteCount
private static int hash(long position)
static void reconfigure(WindowCacheConfig cfg)
DeltaBaseCache.Entry get(PackFile pack, long position)
void store(PackFile pack, long position, byte[] data, int objectType)
private void releaseMemory()
private void moveToHead(DeltaBaseCache.Slot e)
private void unlink(DeltaBaseCache.Slot e)
private void clearEntry(DeltaBaseCache.Slot e)