Package io.micronaut.buffer.netty
Interface ByteBufAllocatorConfiguration
- All Known Implementing Classes:
DefaultByteBufAllocatorConfiguration
public interface ByteBufAllocatorConfiguration
Interface for the Netty bytebuf allocator configuration.
- Since:
- 3.3.0
- Author:
- graemerocher
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setCacheTrimInterval
(@Nullable Integer cacheTrimInterval) void
setChunkSize
(@Nullable Integer chunkSize) void
setMaxCachedBufferCapacity
(@Nullable Integer maxCachedBufferCapacity) void
setMaxCachedByteBuffersPerChunk
(@Nullable Integer maxCachedByteBuffersPerChunk) void
setMaxOrder
(@Nullable Integer maxOrder) void
setNormalCacheSize
(@Nullable Integer normalCacheSize) void
setNumDirectArenas
(@Nullable Integer numDirectArenas) void
setNumHeapArenas
(@Nullable Integer numHeapArenas) void
setPageSize
(@Nullable Integer pageSize) void
setSmallCacheSize
(@Nullable Integer smallCacheSize) void
setUseCacheForAllThreads
(@Nullable Boolean useCacheForAllThreads)
-
Field Details
-
DEFAULT_ALLOCATOR
- See Also:
-
-
Method Details
-
setNumHeapArenas
- Parameters:
numHeapArenas
- The number of heap arenas
-
setNumDirectArenas
- Parameters:
numDirectArenas
- The number of direct arenas
-
setPageSize
- Parameters:
pageSize
- The page size
-
setMaxOrder
- Parameters:
maxOrder
- The max order
-
setChunkSize
- Parameters:
chunkSize
- The chunk size
-
setSmallCacheSize
- Parameters:
smallCacheSize
- The small cache size
-
setNormalCacheSize
- Parameters:
normalCacheSize
- The normal cache size
-
setUseCacheForAllThreads
- Parameters:
useCacheForAllThreads
- Whether to use the cache for all threads
-
setMaxCachedBufferCapacity
- Parameters:
maxCachedBufferCapacity
- The max cached buffer capacity
-
setCacheTrimInterval
- Parameters:
cacheTrimInterval
- The cache trim interval
-
setMaxCachedByteBuffersPerChunk
- Parameters:
maxCachedByteBuffersPerChunk
- The max cached byte buffers per chunk
-