Interface CacheSizeAllocator

All Known Implementing Classes:
NoStrictCacheSizeAllocator, NullCacheSizeAllocator

public interface CacheSizeAllocator
Cache size allocator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    allocate(long size)
    Cost available cache.
    long
    Get available cache size.
    void
    release(long size)
    Release allocated cache size.
  • 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