Package io.netty.buffer
Class AdaptivePoolingAllocator.SizeClassChunkManagementStrategy
- java.lang.Object
-
- io.netty.buffer.AdaptivePoolingAllocator.SizeClassChunkManagementStrategy
-
- All Implemented Interfaces:
AdaptivePoolingAllocator.ChunkManagementStrategy
- Enclosing class:
- AdaptivePoolingAllocator
private static final class AdaptivePoolingAllocator.SizeClassChunkManagementStrategy extends java.lang.Object implements AdaptivePoolingAllocator.ChunkManagementStrategy
-
-
Field Summary
Fields Modifier and Type Field Description private intchunkSizeprivate static intMIN_SEGMENTS_PER_CHUNKprivate intsegmentSize
-
Constructor Summary
Constructors Modifier Constructor Description privateSizeClassChunkManagementStrategy(int segmentSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdaptivePoolingAllocator.ChunkCachecreateChunkCache(boolean isThreadLocal)AdaptivePoolingAllocator.ChunkControllercreateController(AdaptivePoolingAllocator.MagazineGroup group)
-
-
-
Field Detail
-
MIN_SEGMENTS_PER_CHUNK
private static final int MIN_SEGMENTS_PER_CHUNK
- See Also:
- Constant Field Values
-
segmentSize
private final int segmentSize
-
chunkSize
private final int chunkSize
-
-
Method Detail
-
createController
public AdaptivePoolingAllocator.ChunkController createController(AdaptivePoolingAllocator.MagazineGroup group)
- Specified by:
createControllerin interfaceAdaptivePoolingAllocator.ChunkManagementStrategy
-
createChunkCache
public AdaptivePoolingAllocator.ChunkCache createChunkCache(boolean isThreadLocal)
- Specified by:
createChunkCachein interfaceAdaptivePoolingAllocator.ChunkManagementStrategy
-
-