List of usage examples for io.netty.buffer PoolChunkMetric usage
int usage();
From source file:com.yahoo.pulsar.broker.stats.AllocatorStatsGenerator.java
License:Apache License
private static PoolChunkStats newPoolChunkStats(PoolChunkMetric m) { PoolChunkStats stats = new PoolChunkStats(); stats.usage = m.usage(); stats.chunkSize = m.chunkSize();/*from w ww . ja va 2s. c o m*/ stats.freeBytes = m.freeBytes(); return stats; }