ServerChannel implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final EventLoopGroup |
| Access | Constructor and Description |
|---|---|
| protected | AbstractServerChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, Class<? extends Channel> childChannelType)
Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public final EventLoopGroup | childEventLoopGroup()
Implements io. EventLoopGroup that is used to register the child Channels on after accepting
these.
|
| protected final boolean | doConnect(SocketAddress
the address of the remote peer. remoteAddress, SocketAddress the local address of this channel. localAddress, Buffer the initial data that is written during connect
(if initialData)ChannelOption#TCP_FASTOPEN_CONNECT is supported and configured).
If data is written care must be taken to update the
reader offset.Implements abstract io. |
| protected final void | doDisconnect()
Implements abstract io. Channel from its remote peer
|
| protected final boolean | doFinishConnect(R
the remote address of the peer. requestedRemoteAddress)Implements abstract io. |
| protected final void | doShutdown(ChannelShutdownDirection
the direction to shut down. direction)Implements abstract io. Channel.
|
| protected final void | doWriteNow(AbstractChannel<P, L, R>.
the writeSinkWriteSink that must be completed with the write
progress.
WriteSink#complete(long, long, int, boolean) or
WriteSink#complete(long, Throwable, boolean) must be called
exactly once before this method returns non-exceptional.Implements abstract io. false or there are
no more messages to write.
|
| protected final Object | filterOutboundMessage(Object
the message to filter / convert. msg)Overrides io. AbstractChannel, so that
the Channel implementation converts the message to another.
|
| public final boolean | isShutdown(ChannelShutdownDirection direction)
Implements io. true if the ChannelShutdownDirection of the Channel was shutdown before.
|
| protected final R | remoteAddress0()
Implements abstract io. SocketAddress which the Channel is connected to.
|
| childEventLoopGroup | back to summary |
|---|---|
| private final EventLoopGroup childEventLoopGroup | |
| AbstractServerChannel | back to summary |
|---|---|
| protected AbstractServerChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, Class<? extends Channel> childChannelType) Creates a new instance. | |
| childEventLoopGroup | back to summary |
|---|---|
| public final EventLoopGroup childEventLoopGroup() Implements io. Doc from io. Returns the
| |
| doConnect | back to summary |
|---|---|
| protected final boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress, Buffer initialData) Implements abstract io. Doc from io. Connect to remote peer. This method should never be directly called.
| |
| doDisconnect | back to summary |
|---|---|
| protected final void doDisconnect() Implements abstract io. Doc from io. Disconnect this
| |
| doFinishConnect | back to summary |
|---|---|
| protected final boolean doFinishConnect(R requestedRemoteAddress) Implements abstract io. Doc from io. Finish a connect request. This method should never be directly called, use
| |
| doShutdown | back to summary |
|---|---|
| protected final void doShutdown(ChannelShutdownDirection direction) Implements abstract io. Doc from io. Shutdown one direction of the
| |
| doWriteNow | back to summary |
|---|---|
| protected final void doWriteNow(AbstractChannel<P, L, R>. Implements abstract io. Doc from io. Called in a loop when writes should be performed until this method returns
| |
| filterOutboundMessage | back to summary |
|---|---|
| protected final Object filterOutboundMessage(Object msg) Overrides io. Doc from io. Invoked when a new message is added to to the outbound queue of this | |
| isShutdown | back to summary |
|---|---|
| public final boolean isShutdown(ChannelShutdownDirection direction) Implements io. Doc from io. Returns
| |
| remoteAddress0 | back to summary |
|---|---|
| protected final R remoteAddress0() Implements abstract io. Doc from io. Return the
| |