public final class ChannelMetadata
extends java.lang.Object
Channel implementation.| 构造器和说明 |
|---|
ChannelMetadata(boolean hasDisconnect)
Create a new instance
|
ChannelMetadata(boolean hasDisconnect,
int defaultMaxMessagesPerRead)
Create a new instance
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
defaultMaxMessagesPerRead()
If a
MaxMessagesRecvByteBufAllocator is in use, then this is the default value for
MaxMessagesRecvByteBufAllocator.maxMessagesPerRead(). |
boolean |
hasDisconnect()
Returns
true if and only if the channel has the disconnect() operation
that allows a user to disconnect and then call ChannelOutboundInvoker.connect(SocketAddress) again,
such as UDP/IP. |
public ChannelMetadata(boolean hasDisconnect)
hasDisconnect - true if and only if the channel has the disconnect() operation
that allows a user to disconnect and then call ChannelOutboundInvoker.connect(SocketAddress)
again, such as UDP/IP.public ChannelMetadata(boolean hasDisconnect,
int defaultMaxMessagesPerRead)
hasDisconnect - true if and only if the channel has the disconnect() operation
that allows a user to disconnect and then call ChannelOutboundInvoker.connect(SocketAddress)
again, such as UDP/IP.defaultMaxMessagesPerRead - If a MaxMessagesRecvByteBufAllocator is in use, then this value will be
set for MaxMessagesRecvByteBufAllocator.maxMessagesPerRead(). Must be > 0.public boolean hasDisconnect()
true if and only if the channel has the disconnect() operation
that allows a user to disconnect and then call ChannelOutboundInvoker.connect(SocketAddress) again,
such as UDP/IP.public int defaultMaxMessagesPerRead()
MaxMessagesRecvByteBufAllocator is in use, then this is the default value for
MaxMessagesRecvByteBufAllocator.maxMessagesPerRead().