Constructor and Description |
---|
ChannelMetadata(boolean hasDisconnect)
Create a new instance
|
ChannelMetadata(boolean hasDisconnect,
int defaultMaxMessagesPerRead)
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
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()
.Copyright © 2008–2017 The Netty Project. All rights reserved.