Interface ByteBufAllocatorConfiguration

All Known Implementing Classes:
DefaultByteBufAllocatorConfiguration

public interface ByteBufAllocatorConfiguration
Interface for the Netty bytebuf allocator configuration.
Since:
3.3.0
Author:
graemerocher
  • Field Details

  • Method Details

    • setNumHeapArenas

      void setNumHeapArenas(@Nullable @Nullable Integer numHeapArenas)
      Parameters:
      numHeapArenas - The number of heap arenas
    • setNumDirectArenas

      void setNumDirectArenas(@Nullable @Nullable Integer numDirectArenas)
      Parameters:
      numDirectArenas - The number of direct arenas
    • setPageSize

      void setPageSize(@Nullable @Nullable Integer pageSize)
      Parameters:
      pageSize - The page size
    • setMaxOrder

      void setMaxOrder(@Nullable @Nullable Integer maxOrder)
      Parameters:
      maxOrder - The max order
    • setChunkSize

      void setChunkSize(@Nullable @Nullable Integer chunkSize)
      Parameters:
      chunkSize - The chunk size
    • setSmallCacheSize

      void setSmallCacheSize(@Nullable @Nullable Integer smallCacheSize)
      Parameters:
      smallCacheSize - The small cache size
    • setNormalCacheSize

      void setNormalCacheSize(@Nullable @Nullable Integer normalCacheSize)
      Parameters:
      normalCacheSize - The normal cache size
    • setUseCacheForAllThreads

      void setUseCacheForAllThreads(@Nullable @Nullable Boolean useCacheForAllThreads)
      Parameters:
      useCacheForAllThreads - Whether to use the cache for all threads
    • setMaxCachedBufferCapacity

      void setMaxCachedBufferCapacity(@Nullable @Nullable Integer maxCachedBufferCapacity)
      Parameters:
      maxCachedBufferCapacity - The max cached buffer capacity
    • setCacheTrimInterval

      void setCacheTrimInterval(@Nullable @Nullable Integer cacheTrimInterval)
      Parameters:
      cacheTrimInterval - The cache trim interval
    • setMaxCachedByteBuffersPerChunk

      void setMaxCachedByteBuffersPerChunk(@Nullable @Nullable Integer maxCachedByteBuffersPerChunk)
      Parameters:
      maxCachedByteBuffersPerChunk - The max cached byte buffers per chunk