class AbstractEpollStreamChannel.EpollStreamUnsafe extends AbstractEpollChannel.AbstractEpollUnsafe
| Modifier and Type | Field and Description |
|---|---|
private RecvByteBufAllocator.Handle |
allocHandle |
readPending| Constructor and Description |
|---|
EpollStreamUnsafe() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
ChannelPromise promise)
|
(package private) boolean |
doFinishConnect()
Finish the connect
|
(package private) void |
epollInReady()
Called once EPOLLIN event is ready to be processed
|
(package private) void |
epollOutReady()
Called once a EPOLLOUT event is ready to be processed
|
private void |
finishConnect() |
private void |
fulfillConnectPromise(ChannelPromise promise,
boolean wasActive) |
private void |
fulfillConnectPromise(ChannelPromise promise,
java.lang.Throwable cause) |
private boolean |
handleReadException(ChannelPipeline pipeline,
ByteBuf byteBuf,
java.lang.Throwable cause,
boolean close) |
protected java.util.concurrent.Executor |
prepareToClose()
Prepares to close the
Channel. |
clearEpollIn0, epollRdHupReady, flush0, isRdHup, shutdownInputannotateConnectException, beginRead, bind, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, localAddress, outboundBuffer, register, remoteAddress, safeSetFailure, safeSetSuccess, voidPromise, writeprivate RecvByteBufAllocator.Handle allocHandle
protected java.util.concurrent.Executor prepareToClose()
AbstractChannel.AbstractUnsafeChannel. If this method returns an Executor, the
caller must call the Executor.execute(Runnable) method with a task that calls
AbstractChannel.doClose() on the returned Executor. If this method returns null,
AbstractChannel.doClose() must be called from the caller thread. (i.e. EventLoop)prepareToClose in class AbstractChannel.AbstractUnsafeprivate boolean handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, java.lang.Throwable cause, boolean close)
public void connect(java.net.SocketAddress remoteAddress,
java.net.SocketAddress localAddress,
ChannelPromise promise)
Channel.UnsafeChannel of the given ChannelFuture with the given remote SocketAddress.
If a specific local SocketAddress should be used it need to be given as argument. Otherwise just
pass null to it.
The ChannelPromise will get notified once the connect operation was complete.private void fulfillConnectPromise(ChannelPromise promise, boolean wasActive)
private void fulfillConnectPromise(ChannelPromise promise, java.lang.Throwable cause)
private void finishConnect()
void epollOutReady()
AbstractEpollChannel.AbstractEpollUnsafeepollOutReady in class AbstractEpollChannel.AbstractEpollUnsafeboolean doFinishConnect()
throws java.lang.Exception
java.lang.Exceptionvoid epollInReady()
AbstractEpollChannel.AbstractEpollUnsafeepollInReady in class AbstractEpollChannel.AbstractEpollUnsafe