Uses of Interface
io.netty.buffer.PoolChunkMetric

Packages that use PoolChunkMetric
Package
Description
Abstraction of a byte buffer - the fundamental data structure to represent a low-level binary and text message.
  • Uses of PoolChunkMetric in io.netty.buffer

    Classes in io.netty.buffer that implement PoolChunkMetric
    Modifier and Type
    Class
    Description
    (package private) final class 
    Description of algorithm for PageRun/PoolSubpage allocation from PoolChunk Notation: The following terms are important to understand the code > page - a page is the smallest unit of memory chunk that can be allocated > run - a run is a collection of pages > chunk - a chunk is a collection of runs > in this code chunkSize = maxPages * pageSize To begin we allocate a byte array of size = chunkSize Whenever a ByteBuf of given size needs to be created we search for the first position in the byte array that has enough empty space to accommodate the requested size and return a (long) handle that encodes this offset information, (this memory segment is then marked as reserved so it is always used by exactly one ByteBuf and no more) For simplicity all sizes are normalized according to
    invalid @link
    {@link PoolArena#sizeClass#size2SizeIdx(int)
    } method.
    Fields in io.netty.buffer with type parameters of type PoolChunkMetric
    Modifier and Type
    Field
    Description
    private static final Iterator<PoolChunkMetric>
    PoolChunkList.EMPTY_METRICS
     
    Methods in io.netty.buffer that return types with arguments of type PoolChunkMetric
    Modifier and Type
    Method
    Description
    PoolChunkList.iterator()