Package io.netty.buffer
Interface AdaptivePoolingAllocator.ChunkController
-
- All Known Implementing Classes:
AdaptivePoolingAllocator.HistogramChunkController,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.voidinitializeSharedStateIn(AdaptivePoolingAllocator.ChunkController chunkController)Initialize the given chunk factory with shared statistics state (if any) from this factory.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.
-
initializeSharedStateIn
void initializeSharedStateIn(AdaptivePoolingAllocator.ChunkController chunkController)
Initialize the given chunk factory with shared statistics state (if any) from this factory.
-
newChunkAllocation
AdaptivePoolingAllocator.Chunk newChunkAllocation(int promptingSize, AdaptivePoolingAllocator.Magazine magazine)
Allocate a newAdaptivePoolingAllocator.Chunkfor the givenAdaptivePoolingAllocator.Magazine.
-
-