Package io.netty.buffer
Interface AdaptivePoolingAllocator.ChunkController
-
- All Known Implementing Classes:
AdaptivePoolingAllocator.BuddyChunkController,AdaptivePoolingAllocator.SizeClassChunkController
- Enclosing class:
- AdaptivePoolingAllocator
private static interface AdaptivePoolingAllocator.ChunkController
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcomputeBufferCapacity(int requestedSize, int maxCapacity, boolean isReallocation)Compute the "fast max capacity" value for the buffer.AdaptivePoolingAllocator.ChunknewChunkAllocation(int promptingSize, AdaptivePoolingAllocator.Magazine magazine)Allocate a newAdaptivePoolingAllocator.Chunkfor the givenAdaptivePoolingAllocator.Magazine.
-
-
-
Method Detail
-
computeBufferCapacity
int computeBufferCapacity(int requestedSize, int maxCapacity, boolean isReallocation)Compute the "fast max capacity" value for the buffer.
-
newChunkAllocation
AdaptivePoolingAllocator.Chunk newChunkAllocation(int promptingSize, AdaptivePoolingAllocator.Magazine magazine)
Allocate a newAdaptivePoolingAllocator.Chunkfor the givenAdaptivePoolingAllocator.Magazine.
-
-