MessageSizeEstimator implementation which supports the estimation of the size of
Buffer and FileRegion.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final MessageSizeEstimator | DEFAULT
Return the default implementation which returns |
| private final MessageSizeEstimator. |
| Access | Constructor and Description |
|---|---|
| public | DefaultMessageSizeEstimator(int
The size which is returned for unknown messages. unknownSize)Create a new instance |
| Modifier and Type | Method and Description |
|---|---|
| public MessageSizeEstimator. |
| DEFAULT | back to summary |
|---|---|
| public static final MessageSizeEstimator DEFAULT Return the default implementation which returns | |
| handle | back to summary |
|---|---|
| private final MessageSizeEstimator. | |
| DefaultMessageSizeEstimator | back to summary |
|---|---|
| public DefaultMessageSizeEstimator(int unknownSize) Create a new instance
| |
| newHandle | back to summary |
|---|---|
| public MessageSizeEstimator. Implements io. Doc from io. Creates a new handle. The handle provides the actual operations.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | size(Object
The message for which the size should be calculated msg)Implements io. |
| unknownSize | back to summary |
|---|---|
| private final int unknownSize | |
| HandleImpl | back to summary |
|---|---|
| private HandleImpl(int unknownSize) | |
| size | back to summary |
|---|---|
| public int size(Object msg) Implements io. Doc from io. Calculate the size of the given message. | |