Package org.elasticsearch.nio
Class NioServerSocketChannel
java.lang.Object
org.elasticsearch.nio.NioChannel
org.elasticsearch.nio.NioServerSocketChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBindListener(BiConsumer<Void, Exception> listener) voidsetContext(ServerChannelContext context) This method sets the context for a server socket channel.toString()Methods inherited from class org.elasticsearch.nio.NioChannel
addCloseListener, close, isOpen
-
Constructor Details
-
NioServerSocketChannel
-
-
Method Details
-
setContext
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
-
addBindListener
-
getLocalAddress
- Specified by:
getLocalAddressin classNioChannel
-
getRawChannel
- Specified by:
getRawChannelin classNioChannel
-
getContext
- Specified by:
getContextin classNioChannel
-
toString
-