Channel implementation. A server-side
Channel does not allow the following operations:
connect(SocketAddress, ChannelPromise)disconnect(ChannelPromise)write(Object, ChannelPromise)flush()| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ChannelMetadata |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doDisconnect()
Implements abstract io. Channel from its remote peer
|
| protected void | doWrite(ChannelOutboundBuffer in)
Implements abstract io. |
| protected final Object | filterOutboundMessage(Object msg)
Overrides io. ChannelOutboundBuffer of this AbstractChannel, so that
the Channel implementation converts the message to another.
|
| public ChannelMetadata | metadata()
Implements io. ChannelMetadata of the Channel which describe the nature of the Channel.
|
| protected AbstractChannel. | newUnsafe()
Implements abstract io. AbstractUnsafe instance which will be used for the life-time of the Channel
|
| public SocketAddress | remoteAddress()
Overrides io. Implements io. |
| protected SocketAddress | remoteAddress0()
Implements abstract io. SocketAddress which the Channel is connected to.
|
| METADATA | back to summary |
|---|---|
| private static final ChannelMetadata METADATA | |
| AbstractServerChannel | back to summary |
|---|---|
| protected AbstractServerChannel() Creates a new instance. | |
| doDisconnect | back to summary |
|---|---|
| protected void doDisconnect() throws Exception Implements abstract io. Doc from io. Disconnect this
| |
| doWrite | back to summary |
|---|---|
| protected void doWrite(ChannelOutboundBuffer in) throws Exception Implements abstract io. Doc from io. Flush the content of the given buffer to the remote peer.
| |
| filterOutboundMessage | back to summary |
|---|---|
| protected final Object filterOutboundMessage(Object msg) Overrides io. Doc from io. Invoked when a new message is added to a
| |
| metadata | back to summary |
|---|---|
| public ChannelMetadata metadata() Implements io. Doc from io. Return the
| |
| newUnsafe | back to summary |
|---|---|
| protected AbstractChannel. Implements abstract io. Doc from io. Create a new
| |
| remoteAddress | back to summary |
|---|---|
| public SocketAddress remoteAddress() Overrides io. Implements io. Doc from io. Returns the remote address where this channel is connected to. The
returned
| |
| remoteAddress0 | back to summary |
|---|---|
| protected SocketAddress remoteAddress0() Implements abstract io. Doc from io. Return the
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise)
Implements io. Channel of the given ChannelFuture with the given remote SocketAddress.
|
| DefaultServerUnsafe | back to summary |
|---|---|
| private DefaultServerUnsafe() | |
| connect | back to summary |
|---|---|
| public void connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) Implements io. Doc from io. Connect the
| |