Top Description Fields Constructors Methods
io.netty.channel

public final Class ChannelMetadata

extends Object
Class Inheritance
Static Imports
io.netty.util.internal.ObjectUtil.checkPositive

Represents the properties of a Channel implementation.

Field Summary

Modifier and TypeField and Description
private final int
private final boolean

Constructor Summary

AccessConstructor and Description
public
ChannelMetadata(boolean
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.
hasDisconnect
)

Create a new instance

public
ChannelMetadata(boolean
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.
hasDisconnect
,
int
If a MaxMessagesRecvByteBufAllocator is in use, then this value will be set for MaxMessagesRecvByteBufAllocator#maxMessagesPerRead(). Must be > 0.
defaultMaxMessagesPerRead
)

Create a new instance

Method Summary

Modifier and TypeMethod and Description
public int
public 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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultMaxMessagesPerReadback to summary
private final int defaultMaxMessagesPerRead
hasDisconnectback to summary
private final boolean hasDisconnect

Constructor Detail

ChannelMetadataback to summary
public ChannelMetadata(boolean hasDisconnect)

Create a new instance

Parameters
hasDisconnect:boolean

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.

ChannelMetadataback to summary
public ChannelMetadata(boolean hasDisconnect, int defaultMaxMessagesPerRead)

Create a new instance

Parameters
hasDisconnect:boolean

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:int

If a MaxMessagesRecvByteBufAllocator is in use, then this value will be set for MaxMessagesRecvByteBufAllocator#maxMessagesPerRead(). Must be > 0.

Method Detail

defaultMaxMessagesPerReadback to summary
public int defaultMaxMessagesPerRead()

If a MaxMessagesRecvByteBufAllocator is in use, then this is the default value for MaxMessagesRecvByteBufAllocator#maxMessagesPerRead().

hasDisconnectback to summary
public 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.