Package io.netty.buffer
Class AdaptivePoolingAllocator.SizeClassedChunkCache
- java.lang.Object
-
- io.netty.buffer.AdaptivePoolingAllocator.SizeClassedChunkCache
-
- All Implemented Interfaces:
AdaptivePoolingAllocator.ChunkCache
- Direct Known Subclasses:
AdaptivePoolingAllocator.SharedSizeClassedChunkCache,AdaptivePoolingAllocator.ThreadLocalSizeClassedChunkCache
- Enclosing class:
- AdaptivePoolingAllocator
abstract static class AdaptivePoolingAllocator.SizeClassedChunkCache extends java.lang.Object implements AdaptivePoolingAllocator.ChunkCache
-
-
Constructor Summary
Constructors Constructor Description SizeClassedChunkCache()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) static AdaptivePoolingAllocator.SizeClassedChunkCachecreate(boolean isThreadLocal, int chunkSize)(package private) abstract AdaptivePoolingAllocator.SizeClassedChunkforcePurge()abstract AdaptivePoolingAllocator.SizeClassedChunkpollChunk(int size)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.buffer.AdaptivePoolingAllocator.ChunkCache
free, isEmpty, offerChunk
-
-
-
-
Method Detail
-
create
static AdaptivePoolingAllocator.SizeClassedChunkCache create(boolean isThreadLocal, int chunkSize)
-
pollChunk
public abstract AdaptivePoolingAllocator.SizeClassedChunk pollChunk(int size)
- Specified by:
pollChunkin interfaceAdaptivePoolingAllocator.ChunkCache
-
forcePurge
abstract AdaptivePoolingAllocator.SizeClassedChunk forcePurge()
-
-