public final class DefaultMessageSizeEstimator extends java.lang.Object implements MessageSizeEstimator
MessageSizeEstimator实施支持的尺寸的估计ByteBuf , ByteBufHolder和FileRegion 。
MessageSizeEstimator.Handle| Modifier and Type | Field and Description |
|---|---|
static MessageSizeEstimator |
DEFAULT
返回未知消息返回
8的默认实现。
|
| Constructor and Description |
|---|
DefaultMessageSizeEstimator(int unknownSize)
创建一个新的实例
|
| Modifier and Type | Method and Description |
|---|---|
MessageSizeEstimator.Handle |
newHandle()
创建一个新的句柄。
|
public static final MessageSizeEstimator DEFAULT
8的默认实现。
public DefaultMessageSizeEstimator(int unknownSize)
unknownSize - 为未知消息返回的大小。
public MessageSizeEstimator.Handle newHandle()
MessageSizeEstimator复制的描述
newHandle在界面
MessageSizeEstimator
Copyright © 2008–2018 The Netty Project. All rights reserved.