Class PoolArena.DirectArena

java.lang.Object
io.netty.buffer.PoolArena<java.nio.ByteBuffer>
io.netty.buffer.PoolArena.DirectArena
All Implemented Interfaces:
PoolArenaMetric, SizeClassesMetric
Enclosing class:
PoolArena<T>

static final class PoolArena.DirectArena extends PoolArena<java.nio.ByteBuffer>
  • Constructor Details

  • Method Details

    • isDirect

      boolean isDirect()
      Specified by:
      isDirect in class PoolArena<java.nio.ByteBuffer>
    • newChunk

      protected PoolChunk<java.nio.ByteBuffer> newChunk(int pageSize, int maxPageIdx, int pageShifts, int chunkSize)
      Specified by:
      newChunk in class PoolArena<java.nio.ByteBuffer>
    • newUnpooledChunk

      protected PoolChunk<java.nio.ByteBuffer> newUnpooledChunk(int capacity)
      Specified by:
      newUnpooledChunk in class PoolArena<java.nio.ByteBuffer>
    • allocateDirect

      private static CleanableDirectBuffer allocateDirect(int capacity)
    • destroyChunk

      protected void destroyChunk(PoolChunk<java.nio.ByteBuffer> chunk)
      Specified by:
      destroyChunk in class PoolArena<java.nio.ByteBuffer>
    • newByteBuf

      protected PooledByteBuf<java.nio.ByteBuffer> newByteBuf(int maxCapacity)
      Specified by:
      newByteBuf in class PoolArena<java.nio.ByteBuffer>
    • memoryCopy

      protected void memoryCopy(java.nio.ByteBuffer src, int srcOffset, PooledByteBuf<java.nio.ByteBuffer> dstBuf, int length)
      Specified by:
      memoryCopy in class PoolArena<java.nio.ByteBuffer>