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 |
---|---|
(package private) static class |
PoolArena.DirectArena |
(package private) static class |
PoolArena.HeapArena |
Modifier and Type | Field and Description |
---|---|
(package private) PoolArena<T> |
PoolChunk.arena |
(package private) PoolArena<java.nio.ByteBuffer> |
PoolThreadCache.directArena |
private PoolArena<java.nio.ByteBuffer>[] |
PooledByteBufAllocator.directArenas |
(package private) PoolArena<byte[]> |
PoolThreadCache.heapArena |
private PoolArena<byte[]>[] |
PooledByteBufAllocator.heapArenas |
Modifier and Type | Method and Description |
---|---|
private <T> PoolArena<T> |
PooledByteBufAllocator.PoolThreadLocalCache.leastUsedArena(PoolArena<T>[] arenas) |
private static <T> PoolArena<T>[] |
PooledByteBufAllocator.newArenaArray(int size) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
PoolThreadCache.add(PoolArena<?> area,
PoolChunk chunk,
long handle,
int normCapacity,
PoolArena.SizeClass sizeClass)
Add
PoolChunk and handle to the cache if there is enough room. |
(package private) boolean |
PoolThreadCache.allocateNormal(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int normCapacity)
Try to allocate a small buffer out of the cache.
|
(package private) boolean |
PoolThreadCache.allocateSmall(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int normCapacity)
Try to allocate a small buffer out of the cache.
|
(package private) boolean |
PoolThreadCache.allocateTiny(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int normCapacity)
Try to allocate a tiny buffer out of the cache.
|
private PoolThreadCache.MemoryRegionCache<?> |
PoolThreadCache.cache(PoolArena<?> area,
int normCapacity,
PoolArena.SizeClass sizeClass) |
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) |
(package private) void |
PoolChunkList.destroy(PoolArena<T> arena) |
private <T> PoolArena<T> |
PooledByteBufAllocator.PoolThreadLocalCache.leastUsedArena(PoolArena<T>[] arenas) |
Constructor and Description |
---|
PoolChunk(PoolArena<T> arena,
T memory,
int size)
Creates a special chunk that is not pooled.
|
PoolChunk(PoolArena<T> arena,
T memory,
int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
PoolThreadCache(PoolArena<byte[]> heapArena,
PoolArena<java.nio.ByteBuffer> directArena,
int tinyCacheSize,
int smallCacheSize,
int normalCacheSize,
int maxCachedBufferCapacity,
int freeSweepAllocationThreshold) |
PoolThreadCache(PoolArena<byte[]> heapArena,
PoolArena<java.nio.ByteBuffer> directArena,
int tinyCacheSize,
int smallCacheSize,
int normalCacheSize,
int maxCachedBufferCapacity,
int freeSweepAllocationThreshold) |