Class NioSocketChannel

java.lang.Object
org.elasticsearch.nio.NioChannel
org.elasticsearch.nio.NioSocketChannel

public class NioSocketChannel
extends NioChannel
  • Constructor Details

    • NioSocketChannel

      public NioSocketChannel​(java.nio.channels.SocketChannel socketChannel)
  • Method Details

    • setContext

      public void setContext​(SocketChannelContext context)
    • getLocalAddress

      public java.net.InetSocketAddress getLocalAddress()
      Specified by:
      getLocalAddress in class NioChannel
    • getRawChannel

      public java.nio.channels.SocketChannel getRawChannel()
      Specified by:
      getRawChannel in class NioChannel
    • getContext

      public SocketChannelContext getContext()
      Specified by:
      getContext in class NioChannel
    • getRemoteAddress

      public java.net.InetSocketAddress getRemoteAddress()
    • addConnectListener

      public void addConnectListener​(java.util.function.BiConsumer<java.lang.Void,​java.lang.Exception> listener)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object