Interface PoolChunkMetric

All Known Implementing Classes:
PoolChunk

public interface PoolChunkMetric
Metrics for a chunk.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the size of the chunk in bytes, this is the maximum of bytes that can be served out of the chunk.
    int
    Return the number of free bytes in the chunk.
    int
    Return the percentage of the current usage of the chunk.
  • Method Details

    • usage

      int usage()
      Return the percentage of the current usage of the chunk.
    • chunkSize

      int chunkSize()
      Return the size of the chunk in bytes, this is the maximum of bytes that can be served out of the chunk.
    • freeBytes

      int freeBytes()
      Return the number of free bytes in the chunk.