Example usage for io.netty.buffer PooledByteBufAllocator subclass-usage

List of usage examples for io.netty.buffer PooledByteBufAllocator subclass-usage

Introduction

In this page you can find the example usage for io.netty.buffer PooledByteBufAllocator subclass-usage.

Usage

From source file io.airlift.drift.transport.netty.buffer.TestingPooledByteBufAllocator.java

/**
 * This is a custom {@link ByteBufAllocator} that tracks outstanding allocations and
 * throws from the {@link #close()} method if it detects any leaked buffers.
 * <p>
 * Never use this class in production, it will cause your server to run out
 * of memory! This is because it holds strong references to all allocated

From source file org.apache.zookeeper.test.TestByteBufAllocator.java

/**
 * This is a custom ByteBufAllocator that tracks outstanding allocations and
 * crashes the program if any of them are leaked.
 *
 * Never use this class in production, it will cause your server to run out
 * of memory! This is because it holds strong references to all allocated