MessageSizeEstimator Type — netty Architecture
Architecture documentation for the MessageSizeEstimator type/interface in MessageSizeEstimator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cd7b5f14_e3e1_af5e_e84a_dab631dde1e7["MessageSizeEstimator"] c5b24417_d89d_f7db_84d9_d201a4fd1587["MessageSizeEstimator.java"] cd7b5f14_e3e1_af5e_e84a_dab631dde1e7 -->|defined in| c5b24417_d89d_f7db_84d9_d201a4fd1587 style cd7b5f14_e3e1_af5e_e84a_dab631dde1e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/MessageSizeEstimator.java lines 22–39
public interface MessageSizeEstimator {
/**
* Creates a new handle. The handle provides the actual operations.
*/
Handle newHandle();
interface Handle {
/**
* Calculate the size of the given message.
*
* @param msg The message for which the size should be calculated
* @return size The size in bytes. The returned size must be >= 0
*/
int size(Object msg);
}
}
Source
Frequently Asked Questions
What is the MessageSizeEstimator type?
MessageSizeEstimator is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/MessageSizeEstimator.java.
Where is MessageSizeEstimator defined?
MessageSizeEstimator is defined in transport/src/main/java/io/netty/channel/MessageSizeEstimator.java at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free