| Constructor and Description |
|---|
ChannelMetadata(boolean hasDisconnect)
Create a new instance
|
ChannelMetadata(boolean hasDisconnect,
int minMaxMessagesPerRead)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasDisconnect()
Returns
true if and only if the channel has the disconnect() operation
that allows a user to disconnect and then call Channel.connect(SocketAddress) again,
such as UDP/IP. |
int |
minMaxMessagesPerRead()
If a
MaxMessagesRecvByteBufAllocator is in use, then this is the minimum value enforced for
MaxMessagesRecvByteBufAllocator.maxMessagesPerRead(). |
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 Channel.connect(SocketAddress)
again, such as UDP/IP.public ChannelMetadata(boolean hasDisconnect,
int minMaxMessagesPerRead)
hasDisconnect - true if and only if the channel has the disconnect() operation
that allows a user to disconnect and then call Channel.connect(SocketAddress)
again, such as UDP/IP.minMaxMessagesPerRead - If a MaxMessagesRecvByteBufAllocator is in use, then this is the minimum
value enforced 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 Channel.connect(SocketAddress) again,
such as UDP/IP.public int minMaxMessagesPerRead()
MaxMessagesRecvByteBufAllocator is in use, then this is the minimum value enforced for
MaxMessagesRecvByteBufAllocator.maxMessagesPerRead().Copyright © 2008–2015 The Netty Project. All rights reserved.