Class AbstractKQueueChannel.AbstractKQueueUnsafe

java.lang.Object
io.netty.channel.AbstractChannel.AbstractUnsafe
io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe
All Implemented Interfaces:
Channel.Unsafe, IoHandle, KQueueIoHandle, java.lang.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 Details

  • Constructor Details

    • AbstractKQueueUnsafe

      public AbstractKQueueUnsafe()
  • Method Details

    • channel

      Channel channel()
    • ident

      public int ident()
      Description copied from interface: KQueueIoHandle
      Return the ident of the IoHandle.
      Specified by:
      ident in interface KQueueIoHandle
      Returns:
      ident.
    • close

      public void close()
      Description copied from interface: IoHandle
      Called once the IoHandle should be closed. Even once this method is called this handle might still receive events via IoHandle.handle(IoRegistration, IoEvent) (if it was previous be registered and so its IoHandle.registered() method was called) until the IoHandle.unregistered() method is called.
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface IoHandle
    • handle

      public void handle(IoRegistration registration, IoEvent event)
      Description copied from interface: IoHandle
      Be called once there is something to handle.
      Specified by:
      handle in interface IoHandle
      Parameters:
      registration - the IoRegistration for this IoHandle.
      event - the IoEvent that must be handled. The IoEvent is only valid while this method is executed and so must not escape it.
    • readReady

      abstract void readReady(KQueueRecvByteAllocatorHandle allocHandle)
    • shouldStopReading

      final boolean shouldStopReading(ChannelConfig config)
    • failConnectPromise

      final boolean failConnectPromise(java.lang.Throwable cause)
    • writeReady

      private void writeReady()
    • shutdownInput

      void shutdownInput(boolean readEOF)
      Shutdown the input side of the channel.
    • readEOF

      private void readEOF()
    • recvBufAllocHandle

      public KQueueRecvByteAllocatorHandle recvBufAllocHandle()
      Description copied from interface: Channel.Unsafe
      Return the assigned RecvByteBufAllocator.Handle which will be used to allocate ByteBuf's when receiving data.
      Specified by:
      recvBufAllocHandle in interface Channel.Unsafe
      Overrides:
      recvBufAllocHandle in class AbstractChannel.AbstractUnsafe
    • flush0

      protected final void flush0()
      Overrides:
      flush0 in class AbstractChannel.AbstractUnsafe
    • clearReadFilter0

      protected final void clearReadFilter0()
    • fireEventAndClose

      private void fireEventAndClose(java.lang.Object evt)
    • connect

      public void connect(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, ChannelPromise promise)
      Description copied from interface: Channel.Unsafe
      Connect the Channel 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.
      Specified by:
      connect in interface Channel.Unsafe
    • fulfillConnectPromise

      private void fulfillConnectPromise(ChannelPromise promise, boolean wasActive)
    • fulfillConnectPromise

      private void fulfillConnectPromise(ChannelPromise promise, java.lang.Throwable cause)
    • finishConnect

      private void finishConnect()
    • doFinishConnect

      private boolean doFinishConnect() throws java.lang.Exception
      Throws:
      java.lang.Exception