class ThreadSafeDeltaCache extends DeltaCache
DeltaCache.Ref| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.locks.ReentrantLock |
lock |
| Constructor and Description |
|---|
ThreadSafeDeltaCache(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) |
(package private) void |
credit(int reservedSize) |
resizeThreadSafeDeltaCache(PackConfig pc)
boolean canCache(int length,
ObjectToPack src,
ObjectToPack res)
canCache in class DeltaCachevoid credit(int reservedSize)
credit in class DeltaCacheDeltaCache.Ref cache(byte[] data, int actLen, int reservedSize)
cache in class DeltaCache