Package io.netty.channel
Class ChannelMetadata
java.lang.Object
io.netty.channel.ChannelMetadata
Represents the properties of a
Channel
implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionChannelMetadata
(boolean hasDisconnect) Create a new instanceChannelMetadata
(boolean hasDisconnect, int defaultMaxMessagesPerRead) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionint
If aMaxMessagesRecvByteBufAllocator
is in use, then this is the default value forMaxMessagesRecvByteBufAllocator.maxMessagesPerRead()
.boolean
Returnstrue
if and only if the channel has thedisconnect()
operation that allows a user to disconnect and then callChannelOutboundInvoker.connect(SocketAddress)
again, such as UDP/IP.
-
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 thedisconnect()
operation that allows a user to disconnect and then callChannelOutboundInvoker.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 thedisconnect()
operation that allows a user to disconnect and then callChannelOutboundInvoker.connect(SocketAddress)
again, such as UDP/IP.defaultMaxMessagesPerRead
- If aMaxMessagesRecvByteBufAllocator
is in use, then this value will be set forMaxMessagesRecvByteBufAllocator.maxMessagesPerRead()
. Must be> 0
.
-
-
Method Details
-
hasDisconnect
public boolean hasDisconnect()Returnstrue
if and only if the channel has thedisconnect()
operation that allows a user to disconnect and then callChannelOutboundInvoker.connect(SocketAddress)
again, such as UDP/IP. -
defaultMaxMessagesPerRead
public int defaultMaxMessagesPerRead()If aMaxMessagesRecvByteBufAllocator
is in use, then this is the default value forMaxMessagesRecvByteBufAllocator.maxMessagesPerRead()
.
-