BufferedItemSourcePool(String poolName, UnpooledByteBufAllocator byteBufAllocator, ResizePolicy resizePolicy, long resizeTimeout, boolean monitored, long monitorTaskInterval, int initialPoolSize, int itemSizeInBytes) { this.poolName = poolName; this.byteBufAllocator = byteBufAllocator; this.resizePolicy = resizePolicy; this.resizeTimeout = resizeTimeout; this.initialPoolSize = initialPoolSize; this.totalPoolSize = new AtomicInteger(); this.estimatedSourceSize = itemSizeInBytes; this.executor = createExecutor(); incrementPoolSize(initialPoolSize); startRecyclerTask(); if (monitored) { startMonitorTask(monitorTaskInterval); } }
BufferedItemSourcePool(String poolName, UnpooledByteBufAllocator byteBufAllocator, ResizePolicy resizePolicy, long resizeTimeout, boolean monitored, long monitorTaskInterval, int initialPoolSize, int itemSizeInBytes) { this.poolName = poolName; this.byteBufAllocator = byteBufAllocator; this.resizePolicy = resizePolicy; this.resizeTimeout = resizeTimeout; this.initialPoolSize = initialPoolSize; this.totalPoolSize = new AtomicInteger(); this.estimatedSourceSize = itemSizeInBytes; this.executor = createExecutor(); incrementPoolSize(initialPoolSize); startRecyclerTask(); if (monitored) { startMonitorTask(monitorTaskInterval); } }