Interface ObjectSizeEstimator

All Known Implementing Classes:
AbstractTrafficShapingHandler.SimpleObjectSizeEstimator, DefaultObjectSizeEstimator

public interface ObjectSizeEstimator
Estimates the size of an object in bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the estimated size of the specified object in bytes.
  • Method Details

    • estimateSize

      int estimateSize(Object o)
      Returns the estimated size of the specified object in bytes.
      Returns:
      a positive integer which represents the size of the specified object in bytes