Package io.netty.buffer
Class PoolArena.DirectArena
- All Implemented Interfaces:
PoolArenaMetric,SizeClassesMetric
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.buffer.PoolArena
PoolArena.DirectArena, PoolArena.HeapArena, PoolArena.SizeClass -
Field Summary
Fields inherited from class io.netty.buffer.PoolArena
numThreadCaches, parent, sizeClass, smallSubpagePools -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ByteBufferallocateDirect(int capacity) protected voiddestroyChunk(PoolChunk<ByteBuffer> chunk) (package private) booleanisDirect()protected voidmemoryCopy(ByteBuffer src, int srcOffset, PooledByteBuf<ByteBuffer> dstBuf, int length) protected PooledByteBuf<ByteBuffer> newByteBuf(int maxCapacity) protected PoolChunk<ByteBuffer> newChunk(int pageSize, int maxPageIdx, int pageShifts, int chunkSize) protected PoolChunk<ByteBuffer> newUnpooledChunk(int capacity) Methods inherited from class io.netty.buffer.PoolArena
allocate, chunkLists, finalize, free, freeChunk, lock, normalizeSize, numActiveAllocations, numActiveBytes, numActiveHugeAllocations, numActiveNormalAllocations, numActiveSmallAllocations, numActiveTinyAllocations, numAllocations, 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, unlock
-
Constructor Details
-
DirectArena
DirectArena(PooledByteBufAllocator parent, SizeClasses sizeClass)
-
-
Method Details
-
isDirect
boolean isDirect()- Specified by:
isDirectin classPoolArena<ByteBuffer>
-
newChunk
protected PoolChunk<ByteBuffer> newChunk(int pageSize, int maxPageIdx, int pageShifts, int chunkSize) - Specified by:
newChunkin classPoolArena<ByteBuffer>
-
newUnpooledChunk
- Specified by:
newUnpooledChunkin classPoolArena<ByteBuffer>
-
allocateDirect
-
destroyChunk
- Specified by:
destroyChunkin classPoolArena<ByteBuffer>
-
newByteBuf
- Specified by:
newByteBufin classPoolArena<ByteBuffer>
-
memoryCopy
protected void memoryCopy(ByteBuffer src, int srcOffset, PooledByteBuf<ByteBuffer> dstBuf, int length) - Specified by:
memoryCopyin classPoolArena<ByteBuffer>
-