Top Description Inners Methods
io.netty.channel

public Interface MessageSizeEstimator

Known Direct Implementers
io.netty.channel.DefaultMessageSizeEstimator

Responsible to estimate the size of a message. The size represents approximately how much memory the message will reserve in memory.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Method Summary

Modifier and TypeMethod and Description
public MessageSizeEstimator.Handle
newHandle()

Creates a new handle.

Method Detail

newHandleback to summary
public MessageSizeEstimator.Handle newHandle()

Creates a new handle. The handle provides the actual operations.

io.netty.channel back to summary

public Interface MessageSizeEstimator.Handle

Known Direct Implementers
io.netty.channel.PendingBytesTracker, io.netty.channel.DefaultMessageSizeEstimator.HandleImpl

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

size The size in bytes. The returned size must be >= 0
size
(Object
The message for which the size should be calculated
msg
)

Calculate the size of the given message.

Method Detail

sizeback to summary
public int size(Object msg)

Calculate the size of the given message.

Parameters
msg:Object

The message for which the size should be calculated

Returns:int

size The size in bytes. The returned size must be >= 0