Class PoolArena.DirectArena
java.lang.Object
io.netty.buffer.PoolArena<java.nio.ByteBuffer>
io.netty.buffer.PoolArena.DirectArena
- All Implemented Interfaces:
PoolArenaMetric, SizeClassesMetric
-
Nested Class Summary
Nested classes/interfaces inherited from class PoolArena
PoolArena.DirectArena, PoolArena.HeapArena, PoolArena.SizeClass -
Field Summary
Fields inherited from class PoolArena
numThreadCaches, parent, sizeClass, smallSubpagePools -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static CleanableDirectBufferallocateDirect(int capacity) protected voiddestroyChunk(PoolChunk<java.nio.ByteBuffer> chunk) (package private) booleanisDirect()protected voidmemoryCopy(java.nio.ByteBuffer src, int srcOffset, PooledByteBuf<java.nio.ByteBuffer> dstBuf, int length) protected PooledByteBuf<java.nio.ByteBuffer> newByteBuf(int maxCapacity) protected PoolChunk<java.nio.ByteBuffer> newChunk(int pageSize, int maxPageIdx, int pageShifts, int chunkSize) protected PoolChunk<java.nio.ByteBuffer> newUnpooledChunk(int capacity) Methods inherited from class PoolArena
allocate, chunkLists, finalize, free, freeChunk, lock, normalizeSize, numActiveAllocations, numActiveBytes, numActiveChunks, numActiveHugeAllocations, numActiveNormalAllocations, numActiveSmallAllocations, numActiveTinyAllocations, numAllocations, numChunkAllocations, numChunkDeallocations, numChunkLists, numDeallocations, numHugeAllocations, numHugeDeallocations, numNormalAllocations, numNormalDeallocations, numPinnedBytes, numSmallAllocations, numSmallDeallocations, numSmallSubpages, numThreadCaches, numTinyAllocations, numTinyDeallocations, numTinySubpages, pageIdx2size, pageIdx2sizeCompute, pages2pageIdx, pages2pageIdxFloor, reallocate, size2SizeIdx, sizeIdx2size, sizeIdx2sizeCompute, smallSubpages, tinySubpages, toString, unlockMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DirectArena
DirectArena(PooledByteBufAllocator parent, SizeClasses sizeClass)
-
-
Method Details
-
isDirect
-
newChunk
-
newUnpooledChunk
- Specified by:
newUnpooledChunkin classPoolArena<java.nio.ByteBuffer>
-
allocateDirect
-
destroyChunk
- Specified by:
destroyChunkin classPoolArena<java.nio.ByteBuffer>
-
newByteBuf
- Specified by:
newByteBufin classPoolArena<java.nio.ByteBuffer>
-
memoryCopy
protected void memoryCopy(java.nio.ByteBuffer src, int srcOffset, PooledByteBuf<java.nio.ByteBuffer> dstBuf, int length) - Specified by:
memoryCopyin classPoolArena<java.nio.ByteBuffer>
-