public static final class TcpServer.TcpServerGuavaService extends com.google.common.util.concurrent.AbstractExecutionThreadService implements Closeable
| Constructor and Description |
|---|
TcpServerGuavaService(ExecutorService executor,
ClientHandler handlerFactory,
int serverPort,
int acceptBacklog,
int bindTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Executor |
executor() |
void |
run() |
protected String |
serviceName() |
protected void |
startUp() |
String |
toString() |
protected void |
triggerShutdown() |
public TcpServerGuavaService(ExecutorService executor, ClientHandler handlerFactory, int serverPort, int acceptBacklog, int bindTimeoutMillis)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractExecutionThreadServiceExceptionpublic void run()
throws IOException
run in class com.google.common.util.concurrent.AbstractExecutionThreadServiceIOExceptionprotected Executor executor()
executor in class com.google.common.util.concurrent.AbstractExecutionThreadServiceprotected String serviceName()
serviceName in class com.google.common.util.concurrent.AbstractExecutionThreadServiceprotected void triggerShutdown()
triggerShutdown in class com.google.common.util.concurrent.AbstractExecutionThreadServicepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String toString()
toString in class com.google.common.util.concurrent.AbstractExecutionThreadServiceCopyright © 2018 SPF4J. All rights reserved.