Class AbstractEpollChannel.AbstractEpollUnsafe
java.lang.Object
io.netty.channel.AbstractChannel.AbstractUnsafe
io.netty.channel.epoll.AbstractEpollChannel.AbstractEpollUnsafe
- All Implemented Interfaces:
Channel.Unsafe
- Direct Known Subclasses:
AbstractEpollServerChannel.EpollServerSocketUnsafe, AbstractEpollStreamChannel.EpollStreamUnsafe, EpollDatagramChannel.EpollDatagramChannelUnsafe, EpollDomainDatagramChannel.EpollDomainDatagramChannelUnsafe
- Enclosing class:
AbstractEpollChannel
protected abstract class AbstractEpollChannel.AbstractEpollUnsafe
extends AbstractChannel.AbstractUnsafe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EpollRecvByteAllocatorHandleprivate final Runnable(package private) boolean(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidprivate voidClear theNative.EPOLLRDHUPflag from EPOLL, and close on failure.voidconnect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) private booleanFinish the connect(package private) final void(package private) final voidepollInFinally(ChannelConfig config) (package private) abstract voidCalled once EPOLLIN event is ready to be processed(package private) final voidCalled once a EPOLLOUT event is ready to be processed(package private) final voidCalled once EPOLLRDHUP event is ready to be processed(package private) final voidprivate voidprivate voidfireEventAndClose(Object evt) protected final voidflush0()private voidfulfillConnectPromise(ChannelPromise promise, boolean wasActive) private voidfulfillConnectPromise(ChannelPromise promise, Throwable cause) (package private) EpollRecvByteAllocatorHandleCreate a newEpollRecvByteAllocatorHandleinstance.Return the assignedRecvByteBufAllocator.Handlewhich will be used to allocateByteBuf's when receiving data.(package private) voidshutdownInput(boolean rdHup) Shutdown the input side of the channel.Methods inherited from class AbstractChannel.AbstractUnsafe
annotateConnectException, beginRead, bind, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, handleWriteError, localAddress, outboundBuffer, prepareToClose, register, remoteAddress, safeSetFailure, safeSetSuccess, shutdownOutput, voidPromise, write
-
Field Details
-
readPending
boolean readPending -
maybeMoreDataToRead
boolean maybeMoreDataToRead -
allocHandle
-
epollInReadyRunnable
-
-
Constructor Details
-
AbstractEpollUnsafe
protected AbstractEpollUnsafe()
-
-
Method Details
-
epollInReady
abstract void epollInReady()Called once EPOLLIN event is ready to be processed -
epollInBefore
final void epollInBefore() -
epollInFinally
-
executeEpollInReadyRunnable
-
epollRdHupReady
final void epollRdHupReady()Called once EPOLLRDHUP event is ready to be processed -
clearEpollRdHup
private void clearEpollRdHup()Clear theNative.EPOLLRDHUPflag from EPOLL, and close on failure. -
shutdownInput
void shutdownInput(boolean rdHup) Shutdown the input side of the channel. -
fireEventAndClose
-
recvBufAllocHandle
Description copied from interface:Channel.UnsafeReturn the assignedRecvByteBufAllocator.Handlewhich will be used to allocateByteBuf's when receiving data.- Specified by:
recvBufAllocHandlein interfaceChannel.Unsafe- Overrides:
recvBufAllocHandlein classAbstractChannel.AbstractUnsafe
-
newEpollHandle
Create a newEpollRecvByteAllocatorHandleinstance.- Parameters:
handle- The handle to wrap with EPOLL specific logic.
-
flush0
protected final void flush0()- Overrides:
flush0in classAbstractChannel.AbstractUnsafe
-
epollOutReady
final void epollOutReady()Called once a EPOLLOUT event is ready to be processed -
clearEpollIn0
protected final void clearEpollIn0() -
connect
public void connect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) Description copied from interface:Channel.UnsafeConnect theChannelof the givenChannelFuturewith the given remoteSocketAddress. If a specific localSocketAddressshould be used it need to be given as argument. Otherwise just passnullto it. TheChannelPromisewill get notified once the connect operation was complete. -
fulfillConnectPromise
-
fulfillConnectPromise
-
finishConnect
private void finishConnect() -
doFinishConnect
-