public interface Server
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Server.Builder<T extends Server.Builder,S extends Server> |
static interface |
Server.ProxyBuilder<T extends Server.ProxyBuilder,S extends Server> |
static interface |
Server.ServerListener |
| Modifier and Type | Method and Description |
|---|---|
java.net.InetAddress |
getInetAddress()
Get the local address of this server socket.
|
int |
getPort()
Returns the port number on which this socket is listening.
|
boolean |
isRunning()
Server running status.
|
void |
shutdown()
Quit the server.
|
void |
startup()
Start the server.
|
boolean isRunning()
void startup()
void shutdown()
java.net.InetAddress getInetAddress()
InetAddress.java.lang.IllegalStateException - if the server is not started, an IllegalStateException is thrown.ServerSocket.getInetAddress()int getPort()
java.lang.IllegalStateException - if the server is not started, an IllegalStateException is thrown.Socket.getLocalPort()