public final class DefaultMessageSizeEstimator extends Object implements MessageSizeEstimator
MessageSizeEstimator implementation which supports the estimation of the size of
 ByteBuf, ByteBufHolder and FileRegion.MessageSizeEstimator.Handle| Modifier and Type | Field and Description | 
|---|---|
| static MessageSizeEstimator | DEFAULTReturn the default implementation which returns  8for unknown messages. | 
| Constructor and Description | 
|---|
| DefaultMessageSizeEstimator(int unknownSize)Create a new instance | 
| Modifier and Type | Method and Description | 
|---|---|
| MessageSizeEstimator.Handle | newHandle()Creates a new handle. | 
public static final MessageSizeEstimator DEFAULT
8 for unknown messages.public DefaultMessageSizeEstimator(int unknownSize)
unknownSize - The size which is returned for unknown messages.public MessageSizeEstimator.Handle newHandle()
MessageSizeEstimatornewHandle in interface MessageSizeEstimatorCopyright © 2008–2025 The Netty Project. All rights reserved.