| Modifier and Type | Class and Description |
|---|---|
| protected abstract class |
| Modifier and Type | Field and Description |
|---|---|
| protected volatile boolean | |
| private ChannelPromise | connectPromise
The future of the current connection attempt. |
| private Future | |
| pack-priv boolean | |
| protected int | |
| pack-priv boolean | |
| private volatile SocketAddress | |
| private static final ChannelMetadata | |
| private volatile SocketAddress | |
| private SocketAddress | |
| protected final LinuxSocket |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected static void | |
| pack-priv final void | |
| pack-priv void | |
| public abstract EpollChannelConfig | |
| protected final void | doBeginRead()
Implements abstract io. |
| protected void | doBind(SocketAddress local)
Implements abstract io. Channel to the SocketAddress
|
| protected void | |
| protected boolean | |
| pack-priv boolean | |
| protected void | doDeregister()
Overrides io. Channel from its EventLoop.
|
| protected void | doDisconnect()
Implements abstract io. Channel from its remote peer
|
| protected final int | |
| protected void | doRegister()
Overrides io. Channel is registered with its EventLoop as part of the register process.
|
| protected final int | |
| pack-priv final long | doWriteOrSendBytes(ByteBuf data, InetSocketAddress remoteAddress, boolean fastOpen)
Write bytes to the socket, with or without a remote address. |
| public final FileDescriptor | fd()
Implements io. FileDescriptor that is used by this Channel.
|
| public boolean | isActive()
Implements io. true if the Channel is active and so connected.
|
| private static boolean | |
| protected boolean | isCompatible(EventLoop loop)
Implements abstract io. true if the given EventLoop is compatible with this instance.
|
| pack-priv boolean | |
| public boolean | isOpen()
Implements io. true if the Channel is open and may get active later
|
| pack-priv static boolean | |
| 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.
|
| private void | |
| protected final ByteBuf | newDirectBuffer(ByteBuf buf)
Returns an off-heap copy of the specified |
| protected final ByteBuf | newDirectBuffer(Object holder, ByteBuf buf)
Returns an off-heap copy of the specified |
| private static ByteBuf | |
| protected abstract AbstractEpollChannel. | newUnsafe()
Implements abstract io. AbstractUnsafe instance which will be used for the life-time of the Channel
|
| protected SocketAddress | remoteAddress0()
Implements abstract io. SocketAddress which the Channel is connected to.
|
| pack-priv void | |
| protected void | |
| pack-priv final boolean |
| active | back to summary |
|---|---|
| protected volatile boolean active | |
| connectPromise | back to summary |
|---|---|
| private ChannelPromise connectPromise The future of the current connection attempt. If not null, subsequent connection attempts will fail. | |
| connectTimeoutFuture | back to summary |
|---|---|
| private Future<?> connectTimeoutFuture | |
| epollInReadyRunnablePending | back to summary |
|---|---|
| pack-priv boolean epollInReadyRunnablePending | |
| flags | back to summary |
|---|---|
| protected int flags | |
| inputClosedSeenErrorOnRead | back to summary |
|---|---|
| pack-priv boolean inputClosedSeenErrorOnRead | |
| local | back to summary |
|---|---|
| private volatile SocketAddress local | |
| METADATA | back to summary |
|---|---|
| private static final ChannelMetadata METADATA | |
| remote | back to summary |
|---|---|
| private volatile SocketAddress remote | |
| requestedRemoteAddress | back to summary |
|---|---|
| private SocketAddress requestedRemoteAddress | |
| socket | back to summary |
|---|---|
| protected final LinuxSocket socket | |
| AbstractEpollChannel | back to summary |
|---|---|
| pack-priv AbstractEpollChannel(LinuxSocket fd) | |
| AbstractEpollChannel | back to summary |
|---|---|
| pack-priv AbstractEpollChannel(Channel parent, LinuxSocket fd, boolean active) | |
| AbstractEpollChannel | back to summary |
|---|---|
| pack-priv AbstractEpollChannel(Channel parent, LinuxSocket fd, SocketAddress remote) | |
| checkResolvable | back to summary |
|---|---|
| protected static void checkResolvable(InetSocketAddress addr) | |
| clearEpollIn | back to summary |
|---|---|
| pack-priv final void clearEpollIn() | |
| clearFlag | back to summary |
|---|---|
| pack-priv void clearFlag(int flag) throws IOException | |
| config | back to summary |
|---|---|
| public abstract EpollChannelConfig config() Redeclares io. Doc from io. Returns the configuration of this channel.
| |
| doBeginRead | back to summary |
|---|---|
| protected final void doBeginRead() throws Exception Implements abstract io. Doc from io. Schedule a read operation.
| |
| doBind | back to summary |
|---|---|
| protected void doBind(SocketAddress local) 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) throws Exception Connect to the remote peer | |
| doConnect0 | back to summary |
|---|---|
| pack-priv boolean doConnect0(SocketAddress remote) throws Exception | |
| 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
| |
| doReadBytes | back to summary |
|---|---|
| protected final int doReadBytes(ByteBuf byteBuf) throws Exception Read bytes into the given | |
| doRegister | back to summary |
|---|---|
| protected void doRegister() throws Exception Overrides io. Doc from io. Is called after the
| |
| doWriteBytes | back to summary |
|---|---|
| protected final int doWriteBytes(ChannelOutboundBuffer in, ByteBuf buf) throws Exception | |
| doWriteOrSendBytes | back to summary |
|---|---|
| pack-priv final long doWriteOrSendBytes(ByteBuf data, InetSocketAddress remoteAddress, boolean fastOpen) throws IOException Write bytes to the socket, with or without a remote address. Used for datagram and TCP client fast open writes. | |
| fd | back to summary |
|---|---|
| public final FileDescriptor fd() Implements io. Doc from io. Returns the
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements io. Doc from io. Return
| |
| isAllowHalfClosure | back to summary |
|---|---|
| private static boolean isAllowHalfClosure(ChannelConfig config) | |
| isCompatible | back to summary |
|---|---|
| protected boolean isCompatible(EventLoop loop) Implements abstract io. Doc from io. Return
| |
| isFlagSet | back to summary |
|---|---|
| pack-priv boolean isFlagSet(int flag) | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements io. Doc from io. Returns
| |
| isSoErrorZero | back to summary |
|---|---|
| pack-priv static boolean isSoErrorZero(Socket fd) | |
| 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
| |
| modifyEvents | back to summary |
|---|---|
| private void modifyEvents() throws IOException | |
| newDirectBuffer | back to summary |
|---|---|
| protected final ByteBuf newDirectBuffer(ByteBuf buf) Returns an off-heap copy of the specified | |
| newDirectBuffer | back to summary |
|---|---|
| protected final ByteBuf newDirectBuffer(Object holder, ByteBuf buf) Returns an off-heap copy of the specified | |
| newDirectBuffer0 | back to summary |
|---|---|
| private static ByteBuf newDirectBuffer0(Object holder, ByteBuf buf, ByteBufAllocator alloc, int capacity) | |
| newUnsafe | back to summary |
|---|---|
| protected abstract AbstractEpollChannel. Implements abstract io. Doc from io. Create a new
| |
| remoteAddress0 | back to summary |
|---|---|
| protected SocketAddress remoteAddress0() Implements abstract io. Doc from io. Return the
| |
| resetCachedAddresses | back to summary |
|---|---|
| pack-priv void resetCachedAddresses() | |
| setFlag | back to summary |
|---|---|
| protected void setFlag(int flag) throws IOException | |
| shouldBreakEpollInReady | back to summary |
|---|---|
| pack-priv final boolean shouldBreakEpollInReady(ChannelConfig config) | |
| Modifier and Type | Field and Description |
|---|---|
| private EpollRecvByteAllocatorHandle | allocHandle
Deprecated
as a consequence of
EpollRecvByteAllocatorHandle being deprecated.
|
| private final Runnable | |
| pack-priv boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| private void | |
| public void | connect(final SocketAddress remoteAddress, final SocketAddress localAddress, final ChannelPromise promise)
Implements io. Channel of the given ChannelFuture with the given remote SocketAddress.
|
| private boolean | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv abstract void | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final void | |
| private void | |
| private void | |
| protected final void | |
| private void | |
| private void | |
| pack-priv EpollRecvByteAllocatorHandle | newEpollHandle(RecvByteBufAllocator.
The handle to wrap with EPOLL specific logic. handle
Deprecated
as a consequence of
Create a new RecvByteBufAllocator.ExtendedHandle and EpollRecvByteAllocatorHandle being deprecated.
EpollRecvByteAllocatorHandle instance.
|
| public EpollRecvByteAllocatorHandle | recvBufAllocHandle()
Overrides io. Implements io.
Deprecated
as a consequence of
Return the assigned EpollRecvByteAllocatorHandle being deprecated.
RecvByteBufAllocator. which will be used to allocate ByteBuf's when
receiving data.
|
| pack-priv void |
| allocHandle | back to summary |
|---|---|
| private EpollRecvByteAllocatorHandle allocHandle
Deprecated as a consequence of | |
| epollInReadyRunnable | back to summary |
|---|---|
| private final Runnable epollInReadyRunnable | |
| maybeMoreDataToRead | back to summary |
|---|---|
| pack-priv boolean maybeMoreDataToRead | |
| readPending | back to summary |
|---|---|
| pack-priv boolean readPending | |
| AbstractEpollUnsafe | back to summary |
|---|---|
| protected AbstractEpollUnsafe() | |
| clearEpollIn0 | back to summary |
|---|---|
| protected final void clearEpollIn0() | |
| clearEpollRdHup | back to summary |
|---|---|
| private void clearEpollRdHup() Clear the | |
| connect | back to summary |
|---|---|
| public void connect(final SocketAddress remoteAddress, final SocketAddress localAddress, final ChannelPromise promise) Implements io. Doc from io. Connect the
| |
| doFinishConnect | back to summary |
|---|---|
| private boolean doFinishConnect() throws Exception Finish the connect | |
| epollInBefore | back to summary |
|---|---|
| pack-priv final void epollInBefore() | |
| epollInFinally | back to summary |
|---|---|
| pack-priv final void epollInFinally(ChannelConfig config) | |
| epollInReady | back to summary |
|---|---|
| pack-priv abstract void epollInReady() Called once EPOLLIN event is ready to be processed | |
| epollOutReady | back to summary |
|---|---|
| pack-priv final void epollOutReady() Called once a EPOLLOUT event is ready to be processed | |
| epollRdHupReady | back to summary |
|---|---|
| pack-priv final void epollRdHupReady() Called once EPOLLRDHUP event is ready to be processed | |
| executeEpollInReadyRunnable | back to summary |
|---|---|
| pack-priv final void executeEpollInReadyRunnable(ChannelConfig config) | |
| finishConnect | back to summary |
|---|---|
| private void finishConnect() | |
| fireEventAndClose | back to summary |
|---|---|
| private void fireEventAndClose(Object evt) | |
| flush0 | back to summary |
|---|---|
| protected final void flush0() Overrides io.
| |
| fulfillConnectPromise | back to summary |
|---|---|
| private void fulfillConnectPromise(ChannelPromise promise, boolean wasActive) | |
| fulfillConnectPromise | back to summary |
|---|---|
| private void fulfillConnectPromise(ChannelPromise promise, Throwable cause) | |
| newEpollHandle | back to summary |
|---|---|
| pack-priv EpollRecvByteAllocatorHandle newEpollHandle(RecvByteBufAllocator. Deprecated as a consequence of Create a new
| |
| recvBufAllocHandle | back to summary |
|---|---|
| public EpollRecvByteAllocatorHandle recvBufAllocHandle() Overrides io. Implements io. Doc from io. Deprecated as a consequence of Return the assigned
| |
| shutdownInput | back to summary |
|---|---|
| pack-priv void shutdownInput(boolean rdHup) Shutdown the input side of the channel. | |