Class ChannelMetadata
java.lang.Object
io.netty.channel.ChannelMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionChannelMetadata(boolean hasDisconnect) Create a new instanceChannelMetadata(boolean hasDisconnect, int defaultMaxMessagesPerRead) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionintIf aMaxMessagesRecvByteBufAllocatoris in use, then this is the default value forMaxMessagesRecvByteBufAllocator.maxMessagesPerRead().booleanReturnstrueif and only if the channel has thedisconnect()operation that allows a user to disconnect and then callChannel.connect(SocketAddress)again, such as UDP/IP.
-
Constructor Details
-
ChannelMetadata
public ChannelMetadata(boolean hasDisconnect) Create a new instance- Parameters:
hasDisconnect-trueif and only if the channel has thedisconnect()operation that allows a user to disconnect and then callChannel.connect(SocketAddress)again, such as UDP/IP.
-
ChannelMetadata
public ChannelMetadata(boolean hasDisconnect, int defaultMaxMessagesPerRead) Create a new instance- Parameters:
hasDisconnect-trueif and only if the channel has thedisconnect()operation that allows a user to disconnect and then callChannel.connect(SocketAddress)again, such as UDP/IP.defaultMaxMessagesPerRead- If aMaxMessagesRecvByteBufAllocatoris in use, then this value will be set forMaxMessagesRecvByteBufAllocator.maxMessagesPerRead(). Must be> 0.
-
-
Method Details
-
hasDisconnect
public boolean hasDisconnect()Returnstrueif and only if the channel has thedisconnect()operation that allows a user to disconnect and then callChannel.connect(SocketAddress)again, such as UDP/IP. -
defaultMaxMessagesPerRead
public int defaultMaxMessagesPerRead()If aMaxMessagesRecvByteBufAllocatoris in use, then this is the default value forMaxMessagesRecvByteBufAllocator.maxMessagesPerRead().
-