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 | Field and Description |
---|---|
(package private) PoolChunk<T> |
PoolThreadCache.MemoryRegionCache.Entry.chunk |
(package private) PoolChunk<T> |
PoolSubpage.chunk |
protected PoolChunk<T> |
PooledByteBuf.chunk |
private PoolChunk<T> |
PoolChunkList.head |
(package private) PoolChunk<T> |
PoolChunk.next |
(package private) PoolChunk<T> |
PoolChunk.prev |
Modifier and Type | Method and Description |
---|---|
protected abstract PoolChunk<T> |
PoolArena.newChunk(int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
protected PoolChunk<byte[]> |
PoolArena.HeapArena.newChunk(int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
protected PoolChunk<java.nio.ByteBuffer> |
PoolArena.DirectArena.newChunk(int pageSize,
int maxOrder,
int pageShifts,
int chunkSize) |
protected abstract PoolChunk<T> |
PoolArena.newUnpooledChunk(int capacity) |
protected PoolChunk<byte[]> |
PoolArena.HeapArena.newUnpooledChunk(int capacity) |
protected PoolChunk<java.nio.ByteBuffer> |
PoolArena.DirectArena.newUnpooledChunk(int capacity) |
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) void |
PoolChunkList.add(PoolChunk<T> chunk) |
boolean |
PoolThreadCache.MemoryRegionCache.add(PoolChunk<T> chunk,
long handle)
Add to cache if not already full.
|
(package private) void |
PoolChunkList.add0(PoolChunk<T> chunk)
Adds the
PoolChunk to this PoolChunkList . |
protected void |
PoolArena.HeapArena.destroyChunk(PoolChunk<byte[]> chunk) |
protected void |
PoolArena.DirectArena.destroyChunk(PoolChunk<java.nio.ByteBuffer> chunk) |
protected abstract void |
PoolArena.destroyChunk(PoolChunk<T> chunk) |
(package private) boolean |
PoolChunkList.free(PoolChunk<T> chunk,
long handle) |
(package private) void |
PoolArena.free(PoolChunk<T> chunk,
long handle,
int normCapacity,
PoolThreadCache cache) |
(package private) void |
PoolArena.freeChunk(PoolChunk<T> chunk,
long handle,
PoolArena.SizeClass sizeClass) |
(package private) void |
PooledUnsafeDirectByteBuf.init(PoolChunk<java.nio.ByteBuffer> chunk,
long handle,
int offset,
int length,
int maxLength,
PoolThreadCache cache) |
(package private) void |
PooledByteBuf.init(PoolChunk<T> chunk,
long handle,
int offset,
int length,
int maxLength,
PoolThreadCache cache) |
protected void |
PoolThreadCache.SubPageMemoryRegionCache.initBuf(PoolChunk<T> chunk,
long handle,
PooledByteBuf<T> buf,
int reqCapacity) |
protected void |
PoolThreadCache.NormalMemoryRegionCache.initBuf(PoolChunk<T> chunk,
long handle,
PooledByteBuf<T> buf,
int reqCapacity) |
protected abstract void |
PoolThreadCache.MemoryRegionCache.initBuf(PoolChunk<T> chunk,
long handle,
PooledByteBuf<T> buf,
int reqCapacity)
Init the
PooledByteBuf using the provided chunk and handle with the capacity restrictions. |
(package private) void |
PooledUnsafeDirectByteBuf.initUnpooled(PoolChunk<java.nio.ByteBuffer> chunk,
int length) |
(package private) void |
PooledByteBuf.initUnpooled(PoolChunk<T> chunk,
int length) |
private boolean |
PoolChunkList.move(PoolChunk<T> chunk) |
private boolean |
PoolChunkList.move0(PoolChunk<T> chunk)
Moves the
PoolChunk down the PoolChunkList linked-list so it will end up in the right
PoolChunkList that has the correct minUsage / maxUsage in respect to usage() . |
private static PoolThreadCache.MemoryRegionCache.Entry |
PoolThreadCache.MemoryRegionCache.newEntry(PoolChunk<?> chunk,
long handle) |
private void |
PoolChunkList.remove(PoolChunk<T> cur) |
Constructor and Description |
---|
PoolSubpage(PoolSubpage<T> head,
PoolChunk<T> chunk,
int memoryMapIdx,
int runOffset,
int pageSize,
int elemSize) |