Class ChannelMetadata

java.lang.Object
io.netty.channel.ChannelMetadata

public final class ChannelMetadata extends Object
Represents the properties of a Channel implementation.
  • Field Details

    • hasDisconnect

      private final boolean hasDisconnect
    • defaultMaxMessagesPerRead

      private final int defaultMaxMessagesPerRead
  • Constructor Details

    • ChannelMetadata

      public ChannelMetadata(boolean hasDisconnect)
      Create a new instance
      Parameters:
      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.
    • ChannelMetadata

      public ChannelMetadata(boolean hasDisconnect, int defaultMaxMessagesPerRead)
      Create a new instance
      Parameters:
      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.
      defaultMaxMessagesPerRead - If a MaxMessagesRecvByteBufAllocator is in use, then this value will be set for MaxMessagesRecvByteBufAllocator.maxMessagesPerRead(). Must be > 0.
  • Method Details