- java.lang.Object
-
- io.netty5.channel.ChannelMetadata
-
-
Constructor Summary
Constructors Constructor Description ChannelMetadata(boolean hasDisconnect)Create a new instanceChannelMetadata(boolean hasDisconnect, int defaultMaxMessagesPerRead)Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdefaultMaxMessagesPerRead()If aMaxMessagesRecvBufferAllocatoris in use, then this is the default value forMaxMessagesRecvBufferAllocator.maxMessagesPerRead().booleanhasDisconnect()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.
-
-
-
Constructor Detail
-
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 aMaxMessagesRecvBufferAllocatoris in use, then this value will be set forMaxMessagesRecvBufferAllocator.maxMessagesPerRead(). Must be> 0.
-
-
Method Detail
-
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 aMaxMessagesRecvBufferAllocatoris in use, then this is the default value forMaxMessagesRecvBufferAllocator.maxMessagesPerRead().
-
-