Interface CacheSizeAllocator
- All Known Implementing Classes:
NoStrictCacheSizeAllocator,NullCacheSizeAllocator
public interface CacheSizeAllocator
Cache size allocator.
-
Method Details
-
getAvailableCacheSize
long getAvailableCacheSize()Get available cache size.- Returns:
- available cache size
-
allocate
void allocate(long size) Cost available cache.- Parameters:
size- allocate size
-
release
void release(long size) Release allocated cache size.- Parameters:
size- release size
-