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.MessageSizeEstimator
MessageSizeEstimator.Handle
-
-
Field Summary
Fields Modifier and Type Field Description static MessageSizeEstimatorDEFAULTReturn the default implementation which returns8for unknown messages.
-
Constructor Summary
Constructors Constructor Description DefaultMessageSizeEstimator(int unknownSize)Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageSizeEstimator.HandlenewHandle()Creates a new handle.
-
-
-
Field Detail
-
DEFAULT
public static final MessageSizeEstimator DEFAULT
Return the default implementation which returns8for unknown messages.
-
-
Method Detail
-
newHandle
public MessageSizeEstimator.Handle newHandle()
Description copied from interface:MessageSizeEstimatorCreates a new handle. The handle provides the actual operations.- Specified by:
newHandlein interfaceMessageSizeEstimator
-
-