Class ThreadSafeDeltaCache
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.pack.DeltaCache
-
- org.eclipse.jgit.internal.storage.pack.ThreadSafeDeltaCache
-
class ThreadSafeDeltaCache extends DeltaCache
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.internal.storage.pack.DeltaCache
DeltaCache.Ref
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.locks.ReentrantLock
lock
-
Constructor Summary
Constructors Constructor Description ThreadSafeDeltaCache(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)
(package private) void
credit(int reservedSize)
-
Methods inherited from class org.eclipse.jgit.internal.storage.pack.DeltaCache
resize
-
-
-
-
Constructor Detail
-
ThreadSafeDeltaCache
ThreadSafeDeltaCache(PackConfig pc)
-
-
Method Detail
-
canCache
boolean canCache(int length, ObjectToPack src, ObjectToPack res)
- Overrides:
canCache
in classDeltaCache
-
credit
void credit(int reservedSize)
- Overrides:
credit
in classDeltaCache
-
cache
DeltaCache.Ref cache(byte[] data, int actLen, int reservedSize)
- Overrides:
cache
in classDeltaCache
-
-