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 PoolThreadCache.MemoryRegionCache
PoolThreadCache.MemoryRegionCache.Entry<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitBuf(PoolChunk<T> chunk, java.nio.ByteBuffer nioBuffer, long handle, PooledByteBuf<T> buf, int reqCapacity, PoolThreadCache threadCache) Init thePooledByteBufusing the provided chunk and handle with the capacity restrictions.Methods inherited from class PoolThreadCache.MemoryRegionCache
add, allocate, free, trimMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NormalMemoryRegionCache
NormalMemoryRegionCache(int size)
-
-
Method Details
-
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.MemoryRegionCacheInit thePooledByteBufusing the provided chunk and handle with the capacity restrictions.- Specified by:
initBufin classPoolThreadCache.MemoryRegionCache<T>
-