public class NioServer extends AbstractExecutionThreadService
StreamConnection to
process data.Service.Listener, Service.State| Constructor and Description |
|---|
NioServer(StreamConnectionFactory connectionFactory,
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.
|
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, shutDown, startAsync, startUp, state, stopAsync, toStringpublic NioServer(StreamConnectionFactory connectionFactory, InetSocketAddress bindAddress) throws IOException
StreamConnections created by the given StreamConnectionFactoryIOException - If there is an issue opening the server socket or binding fails for some reasonprotected void run()
throws Exception
run in class AbstractExecutionThreadServiceExceptionpublic void triggerShutdown()
com.google.common.util.concurrent.AbstractExecutionThreadService#stop() instead.triggerShutdown in class AbstractExecutionThreadServiceCopyright © 2016. All rights reserved.