Package io.netty.channel
Class DefaultMessageSizeEstimator
- java.lang.Object
- 
- io.netty.channel.DefaultMessageSizeEstimator
 
- 
- All Implemented Interfaces:
- MessageSizeEstimator
 
 public final class DefaultMessageSizeEstimator extends java.lang.Object implements MessageSizeEstimator DefaultMessageSizeEstimatorimplementation which supports the estimation of the size ofByteBuf,ByteBufHolderandFileRegion.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface io.netty.channel.MessageSizeEstimatorMessageSizeEstimator.Handle
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static MessageSizeEstimatorDEFAULTReturn the default implementation which returns8for unknown messages.
 - 
Constructor SummaryConstructors Constructor Description DefaultMessageSizeEstimator(int unknownSize)Create a new instance
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageSizeEstimator.HandlenewHandle()Creates a new handle.
 
- 
- 
- 
Field Detail- 
DEFAULTpublic static final MessageSizeEstimator DEFAULT Return the default implementation which returns8for unknown messages.
 
- 
 - 
Method Detail- 
newHandlepublic MessageSizeEstimator.Handle newHandle() Description copied from interface:MessageSizeEstimatorCreates a new handle. The handle provides the actual operations.- Specified by:
- newHandlein interface- MessageSizeEstimator
 
 
- 
 
-