Class CopyBytesServerSocketChannel

  • All Implemented Interfaces:
    io.netty.channel.Channel, io.netty.channel.ChannelOutboundInvoker, io.netty.channel.ServerChannel, io.netty.channel.socket.ServerSocketChannel, io.netty.util.AttributeMap, java.lang.Comparable<io.netty.channel.Channel>

    public class CopyBytesServerSocketChannel
    extends io.netty.channel.socket.nio.NioServerSocketChannel
    This class is adapted from NioServerSocketChannel class in the Netty project. It overrides the channel read messages behavior to ensure that a CopyBytesSocketChannel socket channel is created.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.netty.channel.nio.AbstractNioChannel

        io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe, io.netty.channel.nio.AbstractNioChannel.NioUnsafe
      • Nested classes/interfaces inherited from class io.netty.channel.AbstractChannel

        io.netty.channel.AbstractChannel.AbstractUnsafe
      • Nested classes/interfaces inherited from interface io.netty.channel.Channel

        io.netty.channel.Channel.Unsafe
    • Field Summary

      • Fields inherited from class io.netty.channel.nio.AbstractNioChannel

        readInterestOp
    • Method Summary

      Modifier and Type Method Description
      protected int doReadMessages​(java.util.List<java.lang.Object> buf)  
      • Methods inherited from class io.netty.channel.socket.nio.NioServerSocketChannel

        closeOnReadError, config, doBind, doClose, doConnect, doDisconnect, doFinishConnect, doWriteMessage, filterOutboundMessage, isActive, javaChannel, localAddress, localAddress0, metadata, remoteAddress, remoteAddress0
      • Methods inherited from class io.netty.channel.nio.AbstractNioMessageChannel

        continueOnWriteError, doBeginRead, doWrite, newUnsafe
      • Methods inherited from class io.netty.channel.nio.AbstractNioChannel

        clearReadPending, doDeregister, doRegister, eventLoop, isCompatible, isOpen, isReadPending, newDirectBuffer, newDirectBuffer, selectionKey, setReadPending, unsafe
      • Methods inherited from class io.netty.channel.AbstractChannel

        alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doShutdownOutput, equals, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlush
      • Methods inherited from class io.netty.util.DefaultAttributeMap

        attr, hasAttr
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.netty.util.AttributeMap

        attr, hasAttr
      • Methods inherited from interface io.netty.channel.Channel

        alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isOpen, isRegistered, isWritable, parent, pipeline, read, unsafe
      • Methods inherited from interface io.netty.channel.ChannelOutboundInvoker

        bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Constructor Detail

      • CopyBytesServerSocketChannel

        public CopyBytesServerSocketChannel()
    • Method Detail

      • doReadMessages

        protected int doReadMessages​(java.util.List<java.lang.Object> buf)
                              throws java.lang.Exception
        Overrides:
        doReadMessages in class io.netty.channel.socket.nio.NioServerSocketChannel
        Throws:
        java.lang.Exception