Package org.jboss.netty.util
Class DefaultObjectSizeEstimator
java.lang.Object
org.jboss.netty.util.DefaultObjectSizeEstimator
- All Implemented Interfaces:
ObjectSizeEstimator
- Direct Known Subclasses:
AbstractTrafficShapingHandler.SimpleObjectSizeEstimator
The default
ObjectSizeEstimator implementation for general purpose.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the estimated size of the specified object in bytes.
-
Constructor Details
-
DefaultObjectSizeEstimator
public DefaultObjectSizeEstimator()Creates a new instance.
-
-
Method Details
-
estimateSize
Description copied from interface:ObjectSizeEstimatorReturns the estimated size of the specified object in bytes.- Specified by:
estimateSizein interfaceObjectSizeEstimator- Returns:
- a positive integer which represents the size of the specified object in bytes
-