class DeltaCache
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DeltaCache.Ref |
Modifier and Type | Field and Description |
---|---|
private int |
entryLimit |
private java.lang.ref.ReferenceQueue<byte[]> |
queue |
private long |
size |
private long |
used |
Constructor and Description |
---|
DeltaCache(PackConfig pc) |
Modifier and Type | Method and Description |
---|---|
(package private) DeltaCache.Ref |
cache(byte[] data,
int actLen,
int reservedSize) |
(package private) boolean |
canCache(int length,
ObjectToPack src,
ObjectToPack res) |
private void |
checkForGarbageCollectedObjects() |
(package private) void |
credit(int reservedSize) |
(package private) byte[] |
resize(byte[] data,
int actLen) |
private final long size
private final int entryLimit
private final java.lang.ref.ReferenceQueue<byte[]> queue
private long used
DeltaCache(PackConfig pc)
boolean canCache(int length, ObjectToPack src, ObjectToPack res)
void credit(int reservedSize)
DeltaCache.Ref cache(byte[] data, int actLen, int reservedSize)
byte[] resize(byte[] data, int actLen)
private void checkForGarbageCollectedObjects()