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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCacheTrimInterval(@Nullable Integer cacheTrimInterval) voidsetChunkSize(@Nullable Integer chunkSize) voidsetMaxCachedBufferCapacity(@Nullable Integer maxCachedBufferCapacity) voidsetMaxCachedByteBuffersPerChunk(@Nullable Integer maxCachedByteBuffersPerChunk) voidsetMaxOrder(@Nullable Integer maxOrder) voidsetNormalCacheSize(@Nullable Integer normalCacheSize) voidsetNumDirectArenas(@Nullable Integer numDirectArenas) voidsetNumHeapArenas(@Nullable Integer numHeapArenas) voidsetPageSize(@Nullable Integer pageSize) voidsetSmallCacheSize(@Nullable Integer smallCacheSize) voidsetUseCacheForAllThreads(@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
-