Package org.elasticsearch.nio
Class NioServerSocketChannel
- java.lang.Object
-
- org.elasticsearch.nio.NioChannel
-
- org.elasticsearch.nio.NioServerSocketChannel
-
public class NioServerSocketChannel extends NioChannel
-
-
Constructor Summary
Constructors Constructor Description NioServerSocketChannel(java.nio.channels.ServerSocketChannel serverSocketChannel)
-
Method Summary
Modifier and Type Method Description ServerChannelContextgetContext()java.net.InetSocketAddressgetLocalAddress()java.nio.channels.ServerSocketChannelgetRawChannel()voidsetContext(ServerChannelContext context)This method sets the context for a server socket channel.java.lang.StringtoString()-
Methods inherited from class org.elasticsearch.nio.NioChannel
addCloseListener, close, isOpen
-
-
-
-
Method Detail
-
setContext
public void setContext(ServerChannelContext context)
This method sets the context for a server socket channel. The context is called when a new channel is accepted, an exception occurs, or it is time to close the channel.- Parameters:
context- to call
-
getLocalAddress
public java.net.InetSocketAddress getLocalAddress()
- Specified by:
getLocalAddressin classNioChannel
-
getRawChannel
public java.nio.channels.ServerSocketChannel getRawChannel()
- Specified by:
getRawChannelin classNioChannel
-
getContext
public ServerChannelContext getContext()
- Specified by:
getContextin classNioChannel
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-