Top Description Methods
io.netty5.buffer

public Interface AllocatorControl

Known Direct Implementers
io.netty5.buffer.ManagedBufferAllocator, io.netty5.buffer.internal.CleanerDrop.NoOpAllocatorControl
Annotations
@UnstableApi
Imports
io.netty5.util.internal.UnstableApi

Methods for accessing and controlling the internals of an allocator. This interface is intended to be used by implementors of the BufferAllocator, Buffer and MemoryManager interfaces.

API Note

This interface is public because it is a necessary integration point to separate allocators from concrete buffer implementations. The API is unstable because Netty's own allocators are the primary customer of this API, and backwards compatibility at this level should not prevent us from evolving it.

Method Summary

Modifier and TypeMethod and Description
public BufferAllocator

Returns:

The BufferAllocator controlled by this AllocatorControl.
getAllocator
()

Get the BufferAllocator instance that is the source of this allocator control.

Method Detail

getAllocatorback to summary
public BufferAllocator getAllocator()

Get the BufferAllocator instance that is the source of this allocator control.

Returns:BufferAllocator

The BufferAllocator controlled by this AllocatorControl.