Channel implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final boolean |
| Access | Constructor 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.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.If a defaultMaxMessagesPerRead)MaxMessagesRecvByteBufAllocator is in use, then this value will be
set for MaxMessagesRecvByteBufAllocator#maxMessagesPerRead(). Must be > 0.Create a new instance |
| Modifier and Type | Method and Description |
|---|---|
| public int | defaultMaxMessagesPerRead()
If a |
| public boolean | hasDisconnect()
Returns |
| defaultMaxMessagesPerRead | back to summary |
|---|---|
| private final int defaultMaxMessagesPerRead | |
| hasDisconnect | back to summary |
|---|---|
| private final boolean hasDisconnect | |
| ChannelMetadata | back to summary |
|---|---|
| public ChannelMetadata(boolean hasDisconnect) Create a new instance
| |
| ChannelMetadata | back to summary |
|---|---|
| public ChannelMetadata(boolean hasDisconnect, int defaultMaxMessagesPerRead) Create a new instance
| |
| defaultMaxMessagesPerRead | back to summary |
|---|---|
| public int defaultMaxMessagesPerRead() If a | |
| hasDisconnect | back to summary |
|---|---|
| public boolean hasDisconnect() Returns | |