Class AbstractKQueueChannel.AbstractKQueueUnsafe
java.lang.Object
io.netty.channel.AbstractChannel.AbstractUnsafe
io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe
- All Implemented Interfaces:
Channel.Unsafe, IoHandle, KQueueIoHandle, AutoCloseable
- Direct Known Subclasses:
AbstractKQueueServerChannel.KQueueServerSocketUnsafe, AbstractKQueueStreamChannel.KQueueStreamUnsafe, KQueueDatagramChannel.KQueueDatagramChannelUnsafe, KQueueDomainDatagramChannel.KQueueDomainDatagramChannelUnsafe
- Enclosing class:
AbstractKQueueChannel
@UnstableApi
public abstract class AbstractKQueueChannel.AbstractKQueueUnsafe
extends AbstractChannel.AbstractUnsafe
implements KQueueIoHandle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Channelchannel()protected final voidvoidclose()Called once theIoHandleshould be closed.voidconnect(SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) private boolean(package private) final booleanfailConnectPromise(Throwable cause) private voidprivate voidfireEventAndClose(Object evt) protected final voidflush0()private voidfulfillConnectPromise(ChannelPromise promise, boolean wasActive) private voidfulfillConnectPromise(ChannelPromise promise, Throwable cause) voidhandle(IoRegistration registration, IoEvent event) Be called once there is something to handle.intident()Return the ident of theIoHandle.private voidreadEOF()(package private) abstract voidreadReady(KQueueRecvByteAllocatorHandle allocHandle) Return the assignedRecvByteBufAllocator.Handlewhich will be used to allocateByteBuf's when receiving data.(package private) final booleanshouldStopReading(ChannelConfig config) (package private) voidshutdownInput(boolean readEOF) Shutdown the input side of the channel.private voidMethods inherited from class AbstractChannel.AbstractUnsafe
annotateConnectException, beginRead, bind, close, close, closeForcibly, closeIfClosed, deregister, disconnect, ensureOpen, flush, handleWriteError, localAddress, outboundBuffer, prepareToClose, register, remoteAddress, safeSetFailure, safeSetSuccess, shutdownOutput, voidPromise, writeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IoHandle
registered, unregistered
-
Field Details
-
readPending
boolean readPending -
allocHandle
-
-
Constructor Details
-
AbstractKQueueUnsafe
public AbstractKQueueUnsafe()
-
-
Method Details
-
channel
Channel channel() -
ident
public int ident()Description copied from interface:KQueueIoHandleReturn the ident of theIoHandle.- Specified by:
identin interfaceKQueueIoHandle- Returns:
- ident.
-
close
public void close()Description copied from interface:IoHandleCalled once theIoHandleshould be closed. Even once this method is called this handle might still receive events viaIoHandle.handle(IoRegistration, IoEvent)(if it was previous be registered and so itsIoHandle.registered()method was called) until theIoHandle.unregistered()method is called.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIoHandle
-
handle
Description copied from interface:IoHandleBe called once there is something to handle. -
readReady
-
shouldStopReading
-
failConnectPromise
-
writeReady
private void writeReady() -
shutdownInput
void shutdownInput(boolean readEOF) Shutdown the input side of the channel. -
readEOF
private void readEOF() -
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
-
flush0
protected final void flush0()- Overrides:
flush0in classAbstractChannel.AbstractUnsafe
-
clearReadFilter0
protected final void clearReadFilter0() -
fireEventAndClose
-
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.- Specified by:
connectin interfaceChannel.Unsafe
-
fulfillConnectPromise
-
fulfillConnectPromise
-
finishConnect
private void finishConnect() -
doFinishConnect
-