class NetworkBufferPool implements BufferPoolFactory, MemorySegmentProvider {

	public void destroy() {
		synchronized (factoryLock) {
			isDestroyed = true;

			MemorySegment segment;
			while ((segment = availableMemorySegments.poll()) != null) {
				segment.free();
			}
		}
	}

	@VisibleForTesting public  NetworkBufferPool(int numberOfSegmentsToAllocate, int segmentSize, int numberOfSegmentsToRequest);
	public  NetworkBufferPool(
		int numberOfSegmentsToAllocate,
		int segmentSize,
		int numberOfSegmentsToRequest,
		Duration requestSegmentsTimeout);

}