Top Inners Fields Constructors Methods
org.eclipse.jgit.internal.storage.pack

pack-priv Class DeltaCache

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.internal.storage.pack.ThreadSafeDeltaCache
Imports
java.lang.ref.ReferenceQueue, .SoftReference, org.eclipse.jgit.storage.pack.PackConfig

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final int
private final ReferenceQueue<byte[]>
private final long
private long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv DeltaCache.Ref
cache(byte[] data, int actLen, int reservedSize)

pack-priv boolean
canCache(int length, ObjectToPack src, ObjectToPack res)

private void
pack-priv void
credit(int reservedSize)

pack-priv byte[]
resize(byte[] data, int actLen)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

entryLimitback to summary
private final int entryLimit
queueback to summary
private final ReferenceQueue<byte[]> queue
sizeback to summary
private final long size
usedback to summary
private long used

Constructor Detail

DeltaCacheback to summary
pack-priv DeltaCache(PackConfig pc)

Method Detail

cacheback to summary
pack-priv DeltaCache.Ref cache(byte[] data, int actLen, int reservedSize)
canCacheback to summary
pack-priv boolean canCache(int length, ObjectToPack src, ObjectToPack res)
checkForGarbageCollectedObjectsback to summary
private void checkForGarbageCollectedObjects()
creditback to summary
pack-priv void credit(int reservedSize)
resizeback to summary
pack-priv byte[] resize(byte[] data, int actLen)
org.eclipse.jgit.internal.storage.pack back to summary

pack-priv Class DeltaCache.Ref

extends SoftReference<byte[]>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int

Constructor Summary

AccessConstructor and Description
pack-priv
Ref(byte[] array, ReferenceQueue<byte[]> queue)

Method Summary

Inherited from java.lang.ref.SoftReference:
get

Field Detail

costback to summary
pack-priv final int cost

Constructor Detail

Refback to summary
pack-priv Ref(byte[] array, ReferenceQueue<byte[]> queue)