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.ReentrantLocklock
-
Constructor Summary
Constructors Constructor Description ThreadSafeDeltaCache(PackConfig pc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) DeltaCache.Refcache(byte[] data, int actLen, int reservedSize)(package private) booleancanCache(int length, ObjectToPack src, ObjectToPack res)(package private) voidcredit(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:
canCachein classDeltaCache
-
credit
void credit(int reservedSize)
- Overrides:
creditin classDeltaCache
-
cache
DeltaCache.Ref cache(byte[] data, int actLen, int reservedSize)
- Overrides:
cachein classDeltaCache
-
-