Package | Description |
---|---|
io.netty.buffer |
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
|
Modifier and Type | Class and Description |
---|---|
private static class |
PoolThreadCache.NormalMemoryRegionCache<T>
Cache used for buffers which are backed by NORMAL size.
|
private static class |
PoolThreadCache.SubPageMemoryRegionCache<T>
Cache used for buffers which are backed by TINY or SMALL size.
|
Modifier and Type | Field and Description |
---|---|
private PoolThreadCache.MemoryRegionCache<java.nio.ByteBuffer>[] |
PoolThreadCache.normalDirectCaches |
private PoolThreadCache.MemoryRegionCache<byte[]>[] |
PoolThreadCache.normalHeapCaches |
private PoolThreadCache.MemoryRegionCache<java.nio.ByteBuffer>[] |
PoolThreadCache.smallSubPageDirectCaches |
private PoolThreadCache.MemoryRegionCache<byte[]>[] |
PoolThreadCache.smallSubPageHeapCaches |
private PoolThreadCache.MemoryRegionCache<java.nio.ByteBuffer>[] |
PoolThreadCache.tinySubPageDirectCaches |
private PoolThreadCache.MemoryRegionCache<byte[]>[] |
PoolThreadCache.tinySubPageHeapCaches |
Modifier and Type | Method and Description |
---|---|
private PoolThreadCache.MemoryRegionCache<?> |
PoolThreadCache.cache(PoolArena<?> area,
int normCapacity,
PoolArena.SizeClass sizeClass) |
private static <T> PoolThreadCache.MemoryRegionCache<T> |
PoolThreadCache.cache(PoolThreadCache.MemoryRegionCache<T>[] cache,
int idx) |
private PoolThreadCache.MemoryRegionCache<?> |
PoolThreadCache.cacheForNormal(PoolArena<?> area,
int normCapacity) |
private PoolThreadCache.MemoryRegionCache<?> |
PoolThreadCache.cacheForSmall(PoolArena<?> area,
int normCapacity) |
private PoolThreadCache.MemoryRegionCache<?> |
PoolThreadCache.cacheForTiny(PoolArena<?> area,
int normCapacity) |
private static <T> PoolThreadCache.MemoryRegionCache<T>[] |
PoolThreadCache.createNormalCaches(int cacheSize,
int maxCachedBufferCapacity,
PoolArena<T> area) |
private static <T> PoolThreadCache.MemoryRegionCache<T>[] |
PoolThreadCache.createSubPageCaches(int cacheSize,
int numCaches,
PoolArena.SizeClass sizeClass) |
Modifier and Type | Method and Description |
---|---|
private boolean |
PoolThreadCache.allocate(PoolThreadCache.MemoryRegionCache<?> cache,
PooledByteBuf buf,
int reqCapacity) |
private static <T> PoolThreadCache.MemoryRegionCache<T> |
PoolThreadCache.cache(PoolThreadCache.MemoryRegionCache<T>[] cache,
int idx) |
private static int |
PoolThreadCache.free(PoolThreadCache.MemoryRegionCache<?> cache) |
private static int |
PoolThreadCache.free(PoolThreadCache.MemoryRegionCache<?>[] caches) |
private static void |
PoolThreadCache.trim(PoolThreadCache.MemoryRegionCache<?> cache) |
private static void |
PoolThreadCache.trim(PoolThreadCache.MemoryRegionCache<?>[] caches) |