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) |
resize
ThreadSafeDeltaCache(PackConfig pc)
boolean canCache(int length, ObjectToPack src, ObjectToPack res)
canCache
in class DeltaCache
void credit(int reservedSize)
credit
in class DeltaCache
DeltaCache.Ref cache(byte[] data, int actLen, int reservedSize)
cache
in class DeltaCache