Package io.netty.channel
Interface MessageSizeEstimator.Handle
- All Known Implementing Classes:
DefaultMessageSizeEstimator.HandleImpl
,PendingBytesTracker
,PendingBytesTracker.ChannelOutboundBufferPendingBytesTracker
,PendingBytesTracker.DefaultChannelPipelinePendingBytesTracker
,PendingBytesTracker.NoopPendingBytesTracker
- Enclosing interface:
MessageSizeEstimator
public static interface MessageSizeEstimator.Handle
-
Method Summary
-
Method Details
-
size
Calculate the size of the given message.- Parameters:
msg
- The message for which the size should be calculated- Returns:
- size The size in bytes. The returned size must be >= 0
-