Package io.netty.buffer
Class PoolThreadCache.NormalMemoryRegionCache<T>
java.lang.Object
io.netty.buffer.PoolThreadCache.MemoryRegionCache<T>
io.netty.buffer.PoolThreadCache.NormalMemoryRegionCache<T>
- Enclosing class:
PoolThreadCache
private static final class PoolThreadCache.NormalMemoryRegionCache<T>
extends PoolThreadCache.MemoryRegionCache<T>
Cache used for buffers which are backed by NORMAL size.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.buffer.PoolThreadCache.MemoryRegionCache
PoolThreadCache.MemoryRegionCache.Entry<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
initBuf
(PoolChunk<T> chunk, 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
-
Constructor Details
-
NormalMemoryRegionCache
NormalMemoryRegionCache(int size)
-
-
Method Details
-
initBuf
protected void initBuf(PoolChunk<T> chunk, 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>
-