Package io.netty.buffer
Class PoolThreadCache.SubPageMemoryRegionCache<T>
- java.lang.Object
-
- io.netty.buffer.PoolThreadCache.MemoryRegionCache<T>
-
- io.netty.buffer.PoolThreadCache.SubPageMemoryRegionCache<T>
-
- Enclosing class:
- PoolThreadCache
private static final class PoolThreadCache.SubPageMemoryRegionCache<T> extends PoolThreadCache.MemoryRegionCache<T>
Cache used for buffers which are backed by TINY or SMALL size.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty.buffer.PoolThreadCache.MemoryRegionCache
PoolThreadCache.MemoryRegionCache.Entry<T>
-
-
Constructor Summary
Constructors Constructor Description SubPageMemoryRegionCache(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initBuf(PoolChunk<T> chunk, java.nio.ByteBuffer nioBuffer, long handle, PooledByteBuf<T> buf, int reqCapacity, PoolThreadCache threadCache)
Init thePooledByteBuf
using the provided chunk and handle with the capacity restrictions.-
Methods inherited from class io.netty.buffer.PoolThreadCache.MemoryRegionCache
add, allocate, free, trim
-
-
-
-
Method Detail
-
initBuf
protected void initBuf(PoolChunk<T> chunk, java.nio.ByteBuffer nioBuffer, long handle, PooledByteBuf<T> buf, int reqCapacity, PoolThreadCache threadCache)
Description copied from class:PoolThreadCache.MemoryRegionCache
Init thePooledByteBuf
using the provided chunk and handle with the capacity restrictions.- Specified by:
initBuf
in classPoolThreadCache.MemoryRegionCache<T>
-
-