Interface CacheSizeAllocator
-
- All Known Implementing Classes:
NoStrictCacheSizeAllocator,NullCacheSizeAllocator
public interface CacheSizeAllocatorCache size allocator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallocate(long size)Cost available cache.longgetAvailableCacheSize()Get available cache size.voidrelease(long size)Release allocated cache size.
-
-
-
Method Detail
-
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
-
-