public class NioServer
extends com.google.common.util.concurrent.AbstractExecutionThreadService
StreamConnection to
process data.| Constructor and Description |
|---|
NioServer(StreamConnectionFactory connectionFactory,
java.net.InetSocketAddress bindAddress)
Creates a new server which is capable of listening for incoming connections and processing client provided data
using
StreamConnections created by the given StreamConnectionFactory |
| Modifier and Type | Method and Description |
|---|---|
protected void |
run() |
void |
triggerShutdown()
Invoked by the Execution service when it's time to stop.
|
public NioServer(StreamConnectionFactory connectionFactory, java.net.InetSocketAddress bindAddress) throws java.io.IOException
StreamConnections created by the given StreamConnectionFactoryjava.io.IOException - If there is an issue opening the server socket or binding fails for some reasonprotected void run()
throws java.lang.Exception
run in class com.google.common.util.concurrent.AbstractExecutionThreadServicejava.lang.Exceptionpublic void triggerShutdown()
AbstractExecutionThreadService.stopAsync() instead.triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadService