public class TcpServer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TcpServer.Monitor |
Modifier and Type | Field and Description |
---|---|
private ServerSocket |
listen |
private TcpServer.Monitor[] |
monitors |
private AgentId |
serverId |
Constructor and Description |
---|
TcpServer(ServerSocket listen,
int poolSize,
int timeout,
AgentId serverId) |
private volatile ServerSocket listen
private TcpServer.Monitor[] monitors
private AgentId serverId
public TcpServer(ServerSocket listen, int poolSize, int timeout, AgentId serverId)
public final void start()
public final void stop()
public final ServerSocket getListen()
public final AgentId getServerId()
Copyright © 2013 ScalAgent D.T.. All Rights Reserved.