| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| protected volatile boolean | |
| private int | |
| private volatile SocketAddress | |
| private boolean | |
| private final Runnable | |
| private boolean | |
| private boolean | |
| private EpollRegistration | |
| private volatile SocketAddress | |
| protected final LinuxSocket |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractEpollChannel(EventLoop eventLoop, boolean supportingDisconnect, int initialFlag, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, LinuxSocket fd)
|
| pack-priv | AbstractEpollChannel(P parent, EventLoop eventLoop, boolean supportingDisconnect, int initialFlag, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, LinuxSocket fd, boolean active)
|
| pack-priv | AbstractEpollChannel(P parent, EventLoop eventLoop, boolean supportingDisconnect, int initialFlag, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, LinuxSocket fd, SocketAddress remote)
|
| Modifier and Type | Method and Description |
|---|---|
| protected static void | |
| private void | |
| protected final void | |
| pack-priv final void | |
| pack-priv final void | |
| protected void | doBind(SocketAddress
the local)SocketAddress to bound to.Implements abstract io. Channel to the SocketAddress
|
| protected final void | doClearScheduledRead()
Overrides io. |
| 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 boolean | |
| protected void | doDisconnect()
Implements abstract io. Channel from its remote peer
|
| protected boolean | doFinishConnect(SocketAddress
the remote address of the peer. requestedRemoteAddress)Implements abstract io. |
| protected final void | doRead(boolean
true if a read was already pending when read()
was called.Implements abstract io. |
| protected final int | |
| protected boolean | doReadNow(AbstractChannel<P, SocketAddress, SocketAddress>.
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 final int | |
| protected final long | doWriteOrSendBytes(Buffer data, SocketAddress remoteAddress, boolean fastOpen)
Write bytes to the socket, with or without a remote address. |
| pack-priv final void | |
| protected abstract AbstractEpollChannel. | epollInReady(AbstractChannel<P, SocketAddress, SocketAddress>.
Called once EPOLLIN event is ready to be processed |
| pack-priv final void | |
| pack-priv final void | |
| private void | |
| public final FileDescriptor | fd()
Implements io. FileDescriptor that is used by this Channel.
|
| protected final boolean | |
| pack-priv final int | |
| protected <T> T | getExtendedOption(ChannelOption<T>
the option)ChannelOption.Overrides io. ChannelOptions.
|
| private BufferAllocator | |
| private static BufferAllocator | |
| public boolean | isActive()
Implements io. true if the Channel is active and so connected.
|
| protected boolean | isExtendedOptionSupported(ChannelOption<?>
the option)ChannelOption.Overrides io. ChannelOptions.
|
| private boolean | |
| public final boolean | isOpen()
Implements io. true if the Channel is open and may get active later
|
| protected static boolean | |
| protected boolean | isWriteFlushedScheduled()
Overrides io. true if flushed messages should not be tried to write when calling flush().
|
| protected final SocketAddress | localAddress0()
Implements abstract io. SocketAddress which is bound locally.
|
| private void | |
| protected final Buffer | |
| protected final Buffer | newDirectBuffer(Resource<?> holder, Buffer buf)
Returns an off-heap copy of the given |
| protected BufferAllocator | readBufferAllocator()
Overrides io. BufferAllocator that is used to allocate Buffer that are used for reading.
|
| protected void | readLoopComplete()
Overrides io. |
| pack-priv final void | |
| protected final EpollRegistration | |
| protected final SocketAddress | remoteAddress0()
Implements abstract io. SocketAddress which the Channel is connected to.
|
| pack-priv final void | |
| protected <T> void | setExtendedOption(ChannelOption<T>
the option, T value)ChannelOption.Overrides io. ChannelOptions.
|
| protected final void | |
| protected void | writeLoopComplete(boolean
true if all messages were written during the write loop, false otherwise.Overrides io. |
| active | back to summary |
|---|---|
| protected volatile boolean active | |
| flags | back to summary |
|---|---|
| private int flags | |
| localAddress | back to summary |
|---|---|
| private volatile SocketAddress localAddress | |
| maybeMoreDataToRead | back to summary |
|---|---|
| private boolean maybeMoreDataToRead | |
| readNowRunnable | back to summary |
|---|---|
| private final Runnable readNowRunnable | |
| readNowRunnablePending | back to summary |
|---|---|
| private boolean readNowRunnablePending | |
| receivedRdHup | back to summary |
|---|---|
| private boolean receivedRdHup | |
| registration | back to summary |
|---|---|
| private EpollRegistration registration | |
| remoteAddress | back to summary |
|---|---|
| private volatile SocketAddress remoteAddress | |
| socket | back to summary |
|---|---|
| protected final LinuxSocket socket | |
| AbstractEpollChannel | back to summary |
|---|---|
| pack-priv AbstractEpollChannel(EventLoop eventLoop, boolean supportingDisconnect, int initialFlag, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, LinuxSocket fd) | |
| AbstractEpollChannel | back to summary |
|---|---|
| pack-priv AbstractEpollChannel(P parent, EventLoop eventLoop, boolean supportingDisconnect, int initialFlag, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, LinuxSocket fd, boolean active) | |
| AbstractEpollChannel | back to summary |
|---|---|
| pack-priv AbstractEpollChannel(P parent, EventLoop eventLoop, boolean supportingDisconnect, int initialFlag, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, LinuxSocket fd, SocketAddress remote) | |
| checkResolvable | back to summary |
|---|---|
| protected static void checkResolvable(InetSocketAddress addr) | |
| clearEpollRdHup | back to summary |
|---|---|
| private void clearEpollRdHup() Clear the | |
| clearFlag | back to summary |
|---|---|
| protected final void clearFlag(int flag) throws IOException | |
| closeTransportNow | back to summary |
|---|---|
| pack-priv final void closeTransportNow() | |
| deregister0 | back to summary |
|---|---|
| pack-priv final void deregister0() throws Exception | |
| doBind | back to summary |
|---|---|
| protected void doBind(SocketAddress local) throws Exception Implements abstract io. Doc from io. Bind the
| |
| doClearScheduledRead | back to summary |
|---|---|
| protected final void doClearScheduledRead() Overrides io. Doc from io. Clear any previous scheduled read. By default, this method does nothing but implementations might override it to add extra logic.
| |
| 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. Connect to the remote peer
| |
| doConnect0 | back to summary |
|---|---|
| protected boolean doConnect0(SocketAddress remote, Buffer initialData) throws Exception | |
| doDisconnect | back to summary |
|---|---|
| protected void doDisconnect() throws Exception Implements abstract io. Doc from io. Disconnect this | |
| doFinishConnect | back to summary |
|---|---|
| protected boolean doFinishConnect(SocketAddress 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 final void doRead(boolean wasReadPendingAlready) throws Exception Implements abstract io. Doc from io. Schedule a read operation. | |
| doReadBytes | back to summary |
|---|---|
| protected final int doReadBytes(Buffer buffer) throws Exception Read bytes into the given | |
| doReadNow | back to summary |
|---|---|
| protected boolean doReadNow(AbstractChannel<P, SocketAddress, SocketAddress>. Implements abstract io. Doc from io. Try to read a message from the transport and dispatch it via
| |
| doWriteBytes | back to summary |
|---|---|
| protected final int doWriteBytes(Buffer buf) throws Exception | |
| doWriteOrSendBytes | back to summary |
|---|---|
| protected final long doWriteOrSendBytes(Buffer data, SocketAddress 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. | |
| epollInReady | back to summary |
|---|---|
| pack-priv final void epollInReady() | |
| epollInReady | back to summary |
|---|---|
| protected abstract AbstractEpollChannel. 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 | |
| executeReadNowRunnable | back to summary |
|---|---|
| private void executeReadNowRunnable() | |
| fd | back to summary |
|---|---|
| public final FileDescriptor fd() Implements io. Doc from io. Returns the
| |
| fetchLocalAddress | back to summary |
|---|---|
| protected final boolean fetchLocalAddress() | |
| flags | back to summary |
|---|---|
| pack-priv final int flags() | |
| getExtendedOption | back to summary |
|---|---|
| protected <T> T getExtendedOption(ChannelOption<T> option) Overrides io. Doc from io. Override to add support for more
| |
| ioBufferAllocator | back to summary |
|---|---|
| private BufferAllocator ioBufferAllocator() | |
| ioBufferAllocator | back to summary |
|---|---|
| private static BufferAllocator ioBufferAllocator(BufferAllocator alloc) | |
| isActive | back to summary |
|---|---|
| public boolean isActive() Implements io. Doc from io. Return
| |
| isExtendedOptionSupported | back to summary |
|---|---|
| protected boolean isExtendedOptionSupported(ChannelOption<?> option) Overrides io. Doc from io. Override to add support for more
| |
| isFlagSet | back to summary |
|---|---|
| private boolean isFlagSet(int flag) | |
| isOpen | back to summary |
|---|---|
| public final boolean isOpen() Implements io. Doc from io. Returns
| |
| isSoErrorZero | back to summary |
|---|---|
| protected static boolean isSoErrorZero(Socket fd) | |
| isWriteFlushedScheduled | back to summary |
|---|---|
| protected boolean isWriteFlushedScheduled() Overrides io. Doc from io. Returns
| |
| localAddress0 | back to summary |
|---|---|
| protected final SocketAddress localAddress0() Implements abstract io. Doc from io. Returns the
| |
| modifyEvents | back to summary |
|---|---|
| private void modifyEvents() throws IOException | |
| newDirectBuffer | back to summary |
|---|---|
| protected final Buffer newDirectBuffer(Buffer buf) Returns an off-heap copy of, and then closes, the given | |
| newDirectBuffer | back to summary |
|---|---|
| protected final Buffer newDirectBuffer(Resource<?> holder, Buffer buf) Returns an off-heap copy of the given | |
| readBufferAllocator | back to summary |
|---|---|
| protected BufferAllocator readBufferAllocator() Overrides io. Doc from io. Return the
| |
| readLoopComplete | back to summary |
|---|---|
| protected void readLoopComplete() Overrides io. Doc from io. Called once the read loop completed for this Channel. Sub-classes might override this method but should also call super.
| |
| register0 | back to summary |
|---|---|
| pack-priv final void register0(EpollRegistration registration) | |
| registration | back to summary |
|---|---|
| protected final EpollRegistration registration() | |
| remoteAddress0 | back to summary |
|---|---|
| protected final SocketAddress remoteAddress0() Implements abstract io. Doc from io. Return the
| |
| resetCachedAddresses | back to summary |
|---|---|
| pack-priv final void resetCachedAddresses() | |
| setExtendedOption | back to summary |
|---|---|
| protected <T> void setExtendedOption(ChannelOption<T> option, T value) Overrides io. Doc from io. Override to add support for more
| |
| setFlag | back to summary |
|---|---|
| protected final void setFlag(int flag) throws IOException | |
| 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 |
|---|---|
| public static final AbstractEpollChannel. | |
| public static final AbstractEpollChannel. | |
| public static final AbstractEpollChannel. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractEpollChannel. | |
| public static AbstractEpollChannel. |
| All | back to summary |
|---|---|
| public static final AbstractEpollChannel. | |
| Closed | back to summary |
|---|---|
| public static final AbstractEpollChannel. | |
| Partial | back to summary |
|---|---|
| public static final AbstractEpollChannel. | |
| ReadState | back to summary |
|---|---|
| private ReadState() | |
| valueOf | back to summary |
|---|---|
| public static AbstractEpollChannel. | |
| values | back to summary |
|---|---|
| public static AbstractEpollChannel. | |