Class PoolArena.HeapArena

java.lang.Object
io.netty.buffer.PoolArena<byte[]>
io.netty.buffer.PoolArena.HeapArena
All Implemented Interfaces:
PoolArenaMetric, SizeClassesMetric
Enclosing class:
PoolArena<T>

static final class PoolArena.HeapArena extends PoolArena<byte[]>
  • Field Details

    • lastDestroyedChunk

      private final java.util.concurrent.atomic.AtomicReference<PoolChunk<byte[]>> lastDestroyedChunk
  • Constructor Details

  • Method Details

    • newByteArray

      private static byte[] newByteArray(int size)
    • isDirect

      boolean isDirect()
      Specified by:
      isDirect in class PoolArena<byte[]>
    • newChunk

      protected PoolChunk<byte[]> newChunk(int pageSize, int maxPageIdx, int pageShifts, int chunkSize)
      Specified by:
      newChunk in class PoolArena<byte[]>
    • newUnpooledChunk

      protected PoolChunk<byte[]> newUnpooledChunk(int capacity)
      Specified by:
      newUnpooledChunk in class PoolArena<byte[]>
    • destroyChunk

      protected void destroyChunk(PoolChunk<byte[]> chunk)
      Specified by:
      destroyChunk in class PoolArena<byte[]>
    • newByteBuf

      protected PooledByteBuf<byte[]> newByteBuf(int maxCapacity)
      Specified by:
      newByteBuf in class PoolArena<byte[]>
    • memoryCopy

      protected void memoryCopy(byte[] src, int srcOffset, PooledByteBuf<byte[]> dst, int length)
      Specified by:
      memoryCopy in class PoolArena<byte[]>