private long getNumDirectTotalDeallocations() {
    return numDirectTotalDeallocations;
  }
Constructor to create a {@link NettyInternalMetrics};
@param registry Registry to registry the metrics.
@param config {@link NettyConfig}.
ambry-commons/src/main/java/com/github/ambry/commons/NettyInternalMetrics.java