public interface ByteBufAllocatorConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ALLOCATOR |
Modifier and Type | Method and Description |
---|---|
void |
setCacheTrimInterval(Integer cacheTrimInterval) |
void |
setChunkSize(Integer chunkSize) |
void |
setMaxCachedBufferCapacity(Integer maxCachedBufferCapacity) |
void |
setMaxCachedByteBuffersPerChunk(Integer maxCachedByteBuffersPerChunk) |
void |
setMaxOrder(Integer maxOrder) |
void |
setNormalCacheSize(Integer normalCacheSize) |
void |
setNumDirectArenas(Integer numDirectArenas) |
void |
setNumHeapArenas(Integer numHeapArenas) |
void |
setPageSize(Integer pageSize) |
void |
setSmallCacheSize(Integer smallCacheSize) |
void |
setUseCacheForAllThreads(Boolean useCacheForAllThreads) |
static final String DEFAULT_ALLOCATOR
void setNumHeapArenas(@Nullable Integer numHeapArenas)
numHeapArenas
- The number of heap arenasvoid setNumDirectArenas(@Nullable Integer numDirectArenas)
numDirectArenas
- The number of direct arenasvoid setSmallCacheSize(@Nullable Integer smallCacheSize)
smallCacheSize
- The small cache sizevoid setNormalCacheSize(@Nullable Integer normalCacheSize)
normalCacheSize
- The normal cache sizevoid setUseCacheForAllThreads(@Nullable Boolean useCacheForAllThreads)
useCacheForAllThreads
- Whether to use the cache for all threadsvoid setMaxCachedBufferCapacity(@Nullable Integer maxCachedBufferCapacity)
maxCachedBufferCapacity
- The max cached buffer capacityvoid setCacheTrimInterval(@Nullable Integer cacheTrimInterval)
cacheTrimInterval
- The cache trim interval