public class DefaultMessageSizeEstimator extends Object implements MessageSizeEstimator
MessageSizeEstimator implementation.
Martin's Java Notes
was used for estimation of the size of non-IoBuffers. For unknown
types, it inspects declaring fields of the class of the specified message.
The size of unknown declaring fields are approximated to the specified
averageSizePerField (default: 64).
All the estimated sizes of classes are cached for performance improvement.
This originated from the Mina sandbox.
| Constructor and Description |
|---|
DefaultMessageSizeEstimator() |
public int estimateSize(Object message)
estimateSize in interface MessageSizeEstimatorCopyright © 2006-2012 The Red5 Project