public class TioServer extends Object
Constructor and Description |
---|
TioServer(ServerTioConfig serverTioConfig) |
Modifier and Type | Method and Description |
---|---|
Node |
getServerNode() |
AsynchronousServerSocketChannel |
getServerSocketChannel() |
ServerTioConfig |
getServerTioConfig() |
boolean |
isCheckLastVersion() |
boolean |
isWaitingStop() |
void |
setCheckLastVersion(boolean checkLastVersion) |
void |
setServerTioConfig(ServerTioConfig serverTioConfig) |
void |
setWaitingStop(boolean isWaitingStop) |
void |
start(String serverIp,
int serverPort) |
boolean |
stop() |
public TioServer(ServerTioConfig serverTioConfig)
serverTioConfig
- public ServerTioConfig getServerTioConfig()
public Node getServerNode()
public AsynchronousServerSocketChannel getServerSocketChannel()
public boolean isWaitingStop()
public void setServerTioConfig(ServerTioConfig serverTioConfig)
serverTioConfig
- the serverTioConfig to setpublic void setWaitingStop(boolean isWaitingStop)
isWaitingStop
- the isWaitingStop to setpublic void start(String serverIp, int serverPort) throws IOException
IOException
public boolean stop()
public boolean isCheckLastVersion()
public void setCheckLastVersion(boolean checkLastVersion)
Copyright © 2021. All rights reserved.