class AbstractEpollStreamChannel.EpollStreamUnsafe extends AbstractEpollChannel.AbstractEpollUnsafe
maybeMoreDataToRead, 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 void |
handleReadException(ChannelPipeline pipeline,
ByteBuf byteBuf,
java.lang.Throwable cause,
boolean close,
EpollRecvByteAllocatorHandle allocHandle) |
(package private) EpollRecvByteAllocatorHandle |
newEpollHandle(RecvByteBufAllocator.ExtendedHandle handle)
Create a new
EpollRecvByteAllocatorHandle instance. |
protected java.util.concurrent.Executor |
prepareToClose()
Prepares to close the
Channel. |
clearEpollIn0, epollInBefore, epollInFinally, epollRdHupReady, executeEpollInReadyRunnable, flush0, recvBufAllocHandle, shutdownInputannotateConnectException, beginRead, bind, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, localAddress, outboundBuffer, register, remoteAddress, safeSetFailure, safeSetSuccess, voidPromise, writeprotected 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 void handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, java.lang.Throwable cause, boolean close, EpollRecvByteAllocatorHandle allocHandle)
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.ExceptionEpollRecvByteAllocatorHandle newEpollHandle(RecvByteBufAllocator.ExtendedHandle handle)
AbstractEpollChannel.AbstractEpollUnsafeEpollRecvByteAllocatorHandle instance.newEpollHandle in class AbstractEpollChannel.AbstractEpollUnsafehandle - The handle to wrap with EPOLL specific logic.void epollInReady()
AbstractEpollChannel.AbstractEpollUnsafeepollInReady in class AbstractEpollChannel.AbstractEpollUnsafe