Class DefaultByteBufferPool

    • Constructor Detail

      • DefaultByteBufferPool

        public DefaultByteBufferPool​(boolean direct,
                                     int bufferSize)
        Parameters:
        direct - If this implementation should use direct buffers
        bufferSize - The buffer size to use
      • DefaultByteBufferPool

        public DefaultByteBufferPool​(boolean direct,
                                     int bufferSize,
                                     int maximumPoolSize,
                                     int threadLocalCacheSize,
                                     int leakDecetionPercent)
        Parameters:
        direct - If this implementation should use direct buffers
        bufferSize - The buffer size to use
        maximumPoolSize - The maximum pool size, in number of buffers, it does not include buffers in thread local caches
        threadLocalCacheSize - The maximum number of buffers that can be stored in a thread local cache
      • DefaultByteBufferPool

        public DefaultByteBufferPool​(boolean direct,
                                     int bufferSize,
                                     int maximumPoolSize,
                                     int threadLocalCacheSize)
        Parameters:
        direct - If this implementation should use direct buffers
        bufferSize - The buffer size to use
        maximumPoolSize - The maximum pool size, in number of buffers, it does not include buffers in thread local caches
        threadLocalCacheSize - The maximum number of buffers that can be stored in a thread local cache