Package org.elasticsearch.transport
Class CopyBytesServerSocketChannel
- java.lang.Object
-
- io.netty.util.DefaultAttributeMap
-
- io.netty.channel.AbstractChannel
-
- io.netty.channel.nio.AbstractNioChannel
-
- io.netty.channel.nio.AbstractNioMessageChannel
-
- io.netty.channel.socket.nio.NioServerSocketChannel
-
- org.elasticsearch.transport.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.NioServerSocketChannelThis class is adapted fromNioServerSocketChannelclass in the Netty project. It overrides the channel read messages behavior to ensure that aCopyBytesSocketChannelsocket 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
-
-
Constructor Summary
Constructors Constructor Description CopyBytesServerSocketChannel()
-
Method Summary
Modifier and Type Method Description protected intdoReadMessages(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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
-