public class NoStrictCacheSizeAllocator extends Object implements CacheSizeAllocator
| Constructor and Description |
|---|
NoStrictCacheSizeAllocator(long maxCacheSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocate(long size)
This operation will cost available cache size.
|
long |
getAvailableCacheSize()
Get available cache size.
|
void |
release(long size)
This method used to release used cache size and add available cache size.
|
public long getAvailableCacheSize()
CacheSizeAllocatorgetAvailableCacheSize in interface CacheSizeAllocatorpublic void allocate(long size)
allocate in interface CacheSizeAllocatorsize - allocate sizepublic void release(long size)
release in interface CacheSizeAllocatorsize - release sizeCopyright © 2017–2022 Apache Software Foundation. All rights reserved.