private static final class DefaultMessageSizeEstimator.HandleImpl extends java.lang.Object implements MessageSizeEstimator.Handle
Modifier and Type | Field and Description |
---|---|
private int |
unknownSize |
Modifier | Constructor and Description |
---|---|
private |
HandleImpl(int unknownSize) |
Modifier and Type | Method and Description |
---|---|
int |
size(java.lang.Object msg)
Calculate the size of the given message.
|
public int size(java.lang.Object msg)
MessageSizeEstimator.Handle
size
in interface MessageSizeEstimator.Handle
msg
- The message for which the size should be calculated