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.AbstractExecutionThreadService
Exception
public void run() throws IOException
run
in class com.google.common.util.concurrent.AbstractExecutionThreadService
IOException
protected Executor executor()
executor
in class com.google.common.util.concurrent.AbstractExecutionThreadService
protected String serviceName()
serviceName
in class com.google.common.util.concurrent.AbstractExecutionThreadService
protected void triggerShutdown()
triggerShutdown
in class com.google.common.util.concurrent.AbstractExecutionThreadService
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public String toString()
toString
in class com.google.common.util.concurrent.AbstractExecutionThreadService
Copyright © 2018 SPF4J. All rights reserved.