Channel for the local transport.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final ChannelConfig | |
| private volatile ChannelPromise | |
| private static final AtomicReferenceFieldUpdater | |
| private volatile Future | |
| pack-priv final Queue | |
| private volatile LocalAddress | |
| private static final InternalLogger | |
| private static final int | |
| private static final ChannelMetadata | |
| private volatile LocalChannel | |
| private volatile boolean | |
| private final Runnable | |
| private volatile LocalAddress | |
| private final Runnable | |
| private volatile LocalChannel. | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ChannelConfig | |
| protected void | doBeginRead()
Implements abstract io. |
| protected void | doBind(SocketAddress localAddress)
Implements abstract io. Channel to the SocketAddress
|
| protected void | |
| protected void | doDeregister()
Overrides io. Channel from its EventLoop.
|
| protected void | doDisconnect()
Implements abstract io. Channel from its remote peer
|
| protected void | doRegister()
Overrides io. Channel is registered with its EventLoop as part of the register process.
|
| protected void | doWrite(ChannelOutboundBuffer in)
Implements abstract io. |
| private void | |
| private void | |
| public boolean | isActive()
Implements io. true if the Channel is active and so connected.
|
| protected boolean | isCompatible(EventLoop loop)
Implements abstract io. true if the given EventLoop is compatible with this instance.
|
| public boolean | isOpen()
Implements io. true if the Channel is open and may get active later
|
| public LocalAddress | localAddress()
Overrides io. Implements io. |
| protected SocketAddress | localAddress0()
Implements abstract io. SocketAddress which is bound locally.
|
| 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 LocalServerChannel | parent()
Overrides io. Implements io. |
| private void | |
| private void | |
| public LocalAddress | remoteAddress()
Overrides io. Implements io. |
| protected SocketAddress | remoteAddress0()
Implements abstract io. SocketAddress which the Channel is connected to.
|
| private void | |
| private void |
| config | back to summary |
|---|---|
| private final ChannelConfig config | |
| connectPromise | back to summary |
|---|---|
| private volatile ChannelPromise connectPromise | |
| 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 | |
| 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 | |
| METADATA | back to summary |
|---|---|
| private static final ChannelMetadata METADATA | |
| peer | back to summary |
|---|---|
| private volatile LocalChannel peer | |
| readInProgress | back to summary |
|---|---|
| private volatile boolean readInProgress | |
| readTask | back to summary |
|---|---|
| private final Runnable readTask | |
| remoteAddress | back to summary |
|---|---|
| private volatile LocalAddress remoteAddress | |
| shutdownHook | back to summary |
|---|---|
| private final Runnable shutdownHook | |
| state | back to summary |
|---|---|
| private volatile LocalChannel. | |
| writeInProgress | back to summary |
|---|---|
| private volatile boolean writeInProgress | |
| LocalChannel | back to summary |
|---|---|
| public LocalChannel() | |
| LocalChannel | back to summary |
|---|---|
| protected LocalChannel(LocalServerChannel parent, LocalChannel peer) | |
| config | back to summary |
|---|---|
| public ChannelConfig config() Implements io. Doc from io. Returns the configuration of this channel.
| |
| doBeginRead | back to summary |
|---|---|
| protected void doBeginRead() throws Exception Implements abstract io. Doc from io. Schedule a read operation.
| |
| 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
| |
| doDeregister | back to summary |
|---|---|
| protected void doDeregister() throws Exception Overrides io. Doc from io. Deregister the
| |
| doDisconnect | back to summary |
|---|---|
| protected void doDisconnect() throws Exception Implements abstract io. Doc from io. Disconnect this
| |
| doRegister | back to summary |
|---|---|
| protected void doRegister() throws Exception Overrides io. Doc from io. Is called after the
| |
| 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.
| |
| 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
| |
| isCompatible | back to summary |
|---|---|
| protected boolean isCompatible(EventLoop loop) Implements abstract io. Doc from io. Return
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements io. Doc from io. Returns
| |
| localAddress | back to summary |
|---|---|
| public LocalAddress localAddress() Overrides io. Implements io. Doc from io. Returns the local address where this channel is bound to. The returned
| |
| localAddress0 | back to summary |
|---|---|
| protected SocketAddress localAddress0() Implements abstract io. Doc from io. Returns the
| |
| 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
| |
| parent | back to summary |
|---|---|
| public LocalServerChannel parent() Overrides io. Implements io. Doc from io. Returns the parent of this channel.
| |
| readInbound | back to summary |
|---|---|
| private void readInbound() | |
| releaseInboundBuffers | back to summary |
|---|---|
| private void releaseInboundBuffers() | |
| remoteAddress | back to summary |
|---|---|
| public LocalAddress 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
| |
| runFinishPeerReadTask | back to summary |
|---|---|
| private void runFinishPeerReadTask(final LocalChannel peer) | |
| tryClose | back to summary |
|---|---|
| private void tryClose(boolean isActive) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | connect(final SocketAddress remoteAddress, SocketAddress localAddress, final ChannelPromise promise)
Implements io. Channel of the given ChannelFuture with the given remote SocketAddress.
|
| LocalUnsafe | back to summary |
|---|---|
| private LocalUnsafe() | |
| connect | back to summary |
|---|---|
| public void connect(final SocketAddress remoteAddress, SocketAddress localAddress, final ChannelPromise promise) Implements io. Doc from io. Connect the
| |
| 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. | |