Class DeltaCache
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.DeltaCache
-
- Direct Known Subclasses:
ThreadSafeDeltaCache
class DeltaCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
DeltaCache.Ref
-
Field Summary
Fields Modifier and Type Field Description private int
entryLimit
private java.lang.ref.ReferenceQueue<byte[]>
queue
private long
size
private long
used
-
Constructor Summary
Constructors Constructor Description DeltaCache(PackConfig pc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
DeltaCache
DeltaCache(PackConfig pc)
-
-
Method Detail
-
canCache
boolean canCache(int length, ObjectToPack src, ObjectToPack res)
-
credit
void credit(int reservedSize)
-
cache
DeltaCache.Ref cache(byte[] data, int actLen, int reservedSize)
-
resize
byte[] resize(byte[] data, int actLen)
-
checkForGarbageCollectedObjects
private void checkForGarbageCollectedObjects()
-
-