| Modifier and Type | Field and Description |
|---|---|
| protected volatile boolean | |
| private boolean | |
| private volatile SocketAddress | |
| private boolean | |
| private long | |
| private boolean | |
| private final Runnable | |
| private boolean | |
| private KQueueRegistration | |
| private volatile SocketAddress | |
| pack-priv final BsdSocket | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractKQueueChannel(P parent, EventLoop eventLoop, boolean supportsDisconnect, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, BsdSocket fd, boolean active)
|
| pack-priv | AbstractKQueueChannel(P parent, EventLoop eventLoop, boolean supportsDisconnect, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, BsdSocket fd, SocketAddress remote)
|
| Modifier and Type | Method and Description |
|---|---|
| protected static 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 final 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 | |
| private void | |
| private void | |
| private void | |
| private void | |
| public final FileDescriptor | fd()
Implements io. FileDescriptor that is used by this Channel.
|
| protected boolean | |
| 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.
|
| public final boolean | isOpen()
Implements io. true if the Channel is open and may get active later
|
| pack-priv static boolean | |
| protected boolean | isWriteFlushedScheduled()
Overrides io. true if flushed messages should not be tried to write when calling flush().
|
| protected SocketAddress | localAddress0()
Implements abstract io. SocketAddress which is bound locally.
|
| 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.
|
| pack-priv final void | |
| pack-priv final void | |
| protected void | readLoopComplete()
Overrides io. |
| pack-priv final void | |
| pack-priv abstract int | |
| pack-priv final void | |
| protected final KQueueRegistration | |
| protected 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.
|
| pack-priv final void | |
| pack-priv final void | |
| protected final void | writeLoopComplete(boolean
true if all messages were written during the write loop, false otherwise.Overrides io. |
| pack-priv final void |
| active | back to summary |
|---|---|
| protected volatile boolean active | |
| eof | back to summary |
|---|---|
| private boolean eof | |
| localAddress | back to summary |
|---|---|
| private volatile SocketAddress localAddress | |
| maybeMoreDataToRead | back to summary |
|---|---|
| private boolean maybeMoreDataToRead | |
| numberBytesPending | back to summary |
|---|---|
| private long numberBytesPending | |
| readFilterEnabled | back to summary |
|---|---|
| private boolean readFilterEnabled | |
| readNowRunnable | back to summary |
|---|---|
| private final Runnable readNowRunnable | |
| readNowRunnablePending | back to summary |
|---|---|
| private boolean readNowRunnablePending | |
| registration | back to summary |
|---|---|
| private KQueueRegistration registration | |
| remoteAddress | back to summary |
|---|---|
| private volatile SocketAddress remoteAddress | |
| socket | back to summary |
|---|---|
| pack-priv final BsdSocket socket | |
| writeFilterEnabled | back to summary |
|---|---|
| private boolean writeFilterEnabled | |
| AbstractKQueueChannel | back to summary |
|---|---|
| pack-priv AbstractKQueueChannel(P parent, EventLoop eventLoop, boolean supportsDisconnect, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, BsdSocket fd, boolean active) | |
| AbstractKQueueChannel | back to summary |
|---|---|
| pack-priv AbstractKQueueChannel(P parent, EventLoop eventLoop, boolean supportsDisconnect, ReadHandleFactory defaultReadHandleFactory, WriteHandleFactory defaultWriteHandleFactory, BsdSocket fd, SocketAddress remote) | |
| checkResolvable | back to summary |
|---|---|
| protected static void checkResolvable(InetSocketAddress addr) | |
| closeTransportNow | back to summary |
|---|---|
| pack-priv final void closeTransportNow() | |
| deregister0 | back to summary |
|---|---|
| pack-priv final void deregister0() | |
| 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 remoteAddress, SocketAddress localAddress, Buffer data) throws Exception | |
| doDisconnect | back to summary |
|---|---|
| protected void doDisconnect() throws Exception Implements abstract io. Doc from io. Disconnect this | |
| doFinishConnect | back to summary |
|---|---|
| protected final 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) 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 | |
| evSet | back to summary |
|---|---|
| private void evSet(short filter, short flags) | |
| evSet0 | back to summary |
|---|---|
| private void evSet0(KQueueRegistration registration, short filter, short flags) | |
| evSet0 | back to summary |
|---|---|
| private void evSet0(KQueueRegistration registration, short filter, short flags, int fflags) | |
| 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 boolean fetchLocalAddress() | |
| 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
| |
| isOpen | back to summary |
|---|---|
| public final boolean isOpen() Implements io. Doc from io. Returns
| |
| isSoErrorZero | back to summary |
|---|---|
| pack-priv static boolean isSoErrorZero(BsdSocket fd) | |
| isWriteFlushedScheduled | back to summary |
|---|---|
| protected boolean isWriteFlushedScheduled() Overrides io. Doc from io. Returns
| |
| localAddress0 | back to summary |
|---|---|
| protected SocketAddress localAddress0() Implements abstract io. Doc from io. Returns the
| |
| 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
| |
| readEOF | back to summary |
|---|---|
| pack-priv final void readEOF() | |
| readFilter | back to summary |
|---|---|
| pack-priv final void readFilter(boolean readFilterEnabled) | |
| 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.
| |
| readReady | back to summary |
|---|---|
| pack-priv final void readReady(long numberBytesPending) | |
| readReady | back to summary |
|---|---|
| pack-priv abstract int readReady(AbstractChannel<P, SocketAddress, SocketAddress>. | |
| register0 | back to summary |
|---|---|
| pack-priv final void register0(KQueueRegistration registration) | |
| registration | back to summary |
|---|---|
| protected final KQueueRegistration registration() | |
| remoteAddress0 | back to summary |
|---|---|
| protected 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
| |
| unregisterFilters | back to summary |
|---|---|
| pack-priv final void unregisterFilters() | |
| writeFilter | back to summary |
|---|---|
| pack-priv final void writeFilter(boolean writeFilterEnabled) | |
| writeLoopComplete | back to summary |
|---|---|
| protected final 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.
| |
| writeReady | back to summary |
|---|---|
| pack-priv final void writeReady() | |