public class NioServer
extends com.google.common.util.concurrent.AbstractExecutionThreadService
StreamParser to
process data.| Constructor and Description |
|---|
NioServer(StreamParserFactory parserFactory,
InetSocketAddress bindAddress)
Creates a new server which is capable of listening for incoming connections and processing client provided data
using
StreamParsers created by the given StreamParserFactory |
| Modifier and Type | Method and Description |
|---|---|
protected void |
run() |
void |
triggerShutdown()
Invoked by the Execution service when it's time to stop.
|
public NioServer(StreamParserFactory parserFactory, InetSocketAddress bindAddress) throws IOException
StreamParsers created by the given StreamParserFactoryIOException - If there is an issue opening the server socket or binding fails for some reasonprotected void run()
throws Exception
run in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionpublic void triggerShutdown()
AbstractExecutionThreadService.stop() instead.triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadServiceCopyright © 2014. All rights reserved.