Interface ByteBufAllocatorConfiguration


  • public interface ByteBufAllocatorConfiguration
    Interface for the Netty bytebuf allocator configuration.
    Since:
    3.3.0
    • Method Detail

      • setNumHeapArenas

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

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

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

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

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

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

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

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

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

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

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