Channel for the local transport.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicReferenceFieldUpdater | |
| private volatile Future | |
| pack-priv final Queue | |
| private volatile boolean | |
| private volatile LocalAddress | |
| private static final InternalLogger | |
| private static final int | |
| private volatile boolean | |
| private volatile LocalChannel | |
| private volatile boolean | |
| private final Runnable | |
| private volatile LocalAddress | |
| private static final FastThreadLocal | |
| private volatile LocalChannel. | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| protected void | doBind(SocketAddress
the localAddress)SocketAddress to bound to.Implements abstract io. Channel to the SocketAddress
|
| protected void | |
| protected 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 void | doDisconnect()
Implements abstract io. Channel from its remote peer
|
| protected boolean | doFinishConnect(LocalAddress
the remote address of the peer. requestedRemoteAddress)Implements abstract io. |
| protected void | doRead(boolean
true if a read was already pending when read()
was called.Implements abstract io. |
| protected boolean | doReadNow(AbstractChannel<LocalServerChannel, LocalAddress, LocalAddress>.
the readSinkReadSink that should be called with messages that are read from the transport
to propagate these.Implements abstract io. ReadSink#processRead(int, int, Object).
|
| protected void | doShutdown(ChannelShutdownDirection
the direction to shut down. direction)Implements abstract io. Channel.
|
| protected void | doWriteNow(AbstractChannel<LocalServerChannel, LocalAddress, LocalAddress>.
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.
|
| private void | |
| private void | |
| private void | |
| public boolean | isActive()
Implements io. true if the Channel is active and so connected.
|
| public boolean | isOpen()
Implements io. true if the Channel is open and may get active later
|
| public boolean | isShutdown(ChannelShutdownDirection direction)
Implements io. true if the ChannelShutdownDirection of the Channel was shutdown before.
|
| protected LocalAddress | localAddress0()
Implements abstract io. SocketAddress which is bound locally.
|
| public void | |
| private void | |
| protected LocalAddress | remoteAddress0()
Implements abstract io. SocketAddress which the Channel is connected to.
|
| private void | |
| private void | |
| private void | |
| protected void | writeLoopComplete(boolean
true if all messages were written during the write loop, false otherwise.Overrides io. |
| FINISH_READ_FUTURE_UPDATER | back to summary |
|---|---|
private static final AtomicReferenceFieldUpdater<LocalChannel, Future<V>> FINISH_READ_FUTURE_UPDATER
| |
| finishReadFuture | back to summary |
|---|---|
| private volatile Future<?> finishReadFuture | |
| inboundBuffer | back to summary |
|---|---|
| pack-priv final Queue<Object> inboundBuffer | |
| inputShutdown | back to summary |
|---|---|
| private volatile boolean inputShutdown | |
| localAddress | back to summary |
|---|---|
| private volatile LocalAddress localAddress | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| MAX_READER_STACK_DEPTH | back to summary |
|---|---|
| private static final int MAX_READER_STACK_DEPTH | |
| outputShutdown | back to summary |
|---|---|
| private volatile boolean outputShutdown | |
| peer | back to summary |
|---|---|
| private volatile LocalChannel peer | |
| readInProgress | back to summary |
|---|---|
| private volatile boolean readInProgress | |
| readNowTask | back to summary |
|---|---|
| private final Runnable readNowTask | |
| remoteAddress | back to summary |
|---|---|
| private volatile LocalAddress remoteAddress | |
| STACK_DEPTH | back to summary |
|---|---|
| private static final FastThreadLocal<LocalChannel. | |
| state | back to summary |
|---|---|
| private volatile LocalChannel. | |
| writeInProgress | back to summary |
|---|---|
| private volatile boolean writeInProgress | |
| LocalChannel | back to summary |
|---|---|
| public LocalChannel(EventLoop eventLoop) | |
| LocalChannel | back to summary |
|---|---|
| protected LocalChannel(LocalServerChannel parent, EventLoop eventLoop, LocalChannel peer) | |
| closeTransportNow | back to summary |
|---|---|
| public void closeTransportNow() Implements io.
| |
| deregisterTransportNow | back to summary |
|---|---|
| public void deregisterTransportNow() Implements io.
| |
| doBind | back to summary |
|---|---|
| protected void doBind(SocketAddress localAddress) throws Exception Implements abstract io. Doc from io. Bind the
| |
| doClose | back to summary |
|---|---|
| protected void doClose() throws Exception Implements abstract io. Doc from io. Close the | |
| doConnect | back to summary |
|---|---|
| protected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress, Buffer initialData) throws Exception Implements abstract io. Doc from io. Connect to remote peer. This method should never be directly called.
| |
| doDisconnect | back to summary |
|---|---|
| protected void doDisconnect() throws Exception Implements abstract io. Doc from io. Disconnect this | |
| doFinishConnect | back to summary |
|---|---|
| protected boolean doFinishConnect(LocalAddress requestedRemoteAddress) throws Exception Implements abstract io. Doc from io. Finish a connect request. This method should never be directly called, use
| |
| doRead | back to summary |
|---|---|
| protected void doRead(boolean wasReadPendingAlready) throws Exception Implements abstract io. Doc from io. Schedule a read operation. | |
| doReadNow | back to summary |
|---|---|
| protected boolean doReadNow(AbstractChannel<LocalServerChannel, LocalAddress, LocalAddress>. Implements abstract io. Doc from io. Try to read a message from the transport and dispatch it via
| |
| doShutdown | back to summary |
|---|---|
| protected void doShutdown(ChannelShutdownDirection direction) Implements abstract io. Doc from io. Shutdown one direction of the
| |
| doWriteNow | back to summary |
|---|---|
| protected void doWriteNow(AbstractChannel<LocalServerChannel, LocalAddress, LocalAddress>. Implements abstract io. Doc from io. Called in a loop when writes should be performed until this method returns
| |
| finishConnectAsync | back to summary |
|---|---|
| private void finishConnectAsync() | |
| finishPeerRead | back to summary |
|---|---|
| private void finishPeerRead(final LocalChannel peer) | |
| finishPeerRead0 | back to summary |
|---|---|
| private void finishPeerRead0(LocalChannel peer) | |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements io. Doc from io. Return
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements io. Doc from io. Returns
| |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown(ChannelShutdownDirection direction) Implements io. Doc from io. Returns
| |
| localAddress0 | back to summary |
|---|---|
| protected LocalAddress localAddress0() Implements abstract io. Doc from io. Returns the
| |
| registerTransportNow | back to summary |
|---|---|
| public void registerTransportNow() Implements io.
| |
| releaseInboundBuffers | back to summary |
|---|---|
| private void releaseInboundBuffers() | |
| remoteAddress0 | back to summary |
|---|---|
| protected LocalAddress remoteAddress0() Implements abstract io. Doc from io. Return the
| |
| runFinishPeerReadTask | back to summary |
|---|---|
| private void runFinishPeerReadTask(final LocalChannel peer) | |
| tryClose | back to summary |
|---|---|
| private void tryClose(boolean isActive) | |
| writeFlushedAsync | back to summary |
|---|---|
| private void writeFlushedAsync() | |
| writeLoopComplete | back to summary |
|---|---|
| protected void writeLoopComplete(boolean allWritten) Overrides io. Doc from io. Called once the write loop completed. Subclasses might override this method for custom logic but should also call super.
| |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv boolean |
| stackDepth | back to summary |
|---|---|
| private int stackDepth | |
| ReaderStackDepth | back to summary |
|---|---|
| private ReaderStackDepth() | |
| decrement | back to summary |
|---|---|
| pack-priv void decrement() | |
| incrementIfPossible | back to summary |
|---|---|
| pack-priv boolean incrementIfPossible() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final LocalChannel. | |
| public static final LocalChannel. | |
| public static final LocalChannel. | |
| public static final LocalChannel. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LocalChannel. | |
| public static LocalChannel. |
| BOUND | back to summary |
|---|---|
| public static final LocalChannel. | |
| CLOSED | back to summary |
|---|---|
| public static final LocalChannel. | |
| CONNECTED | back to summary |
|---|---|
| public static final LocalChannel. | |
| OPEN | back to summary |
|---|---|
| public static final LocalChannel. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static LocalChannel. | |
| values | back to summary |
|---|---|
| public static LocalChannel. | |