Class StServer
java.lang.Object
com.io7m.stonesignal.server.internal.StServer
-
Constructor Details
-
StServer
The basic server frontend.- Parameters:
inClock- The clockinConfiguration- The server configuration
-
-
Method Details
-
start
Description copied from interface:StServerTypeStart the server instance. Can be called multiple times redundantly, and can be called before or after #close() has been called.- Specified by:
startin interfaceStServerType- Throws:
StException- On errors
-
database
- Specified by:
databasein interfaceStServerType- Returns:
- The server's database instance
-
configuration
- Specified by:
configurationin interfaceStServerType- Returns:
- The server's associated configuration
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceStServerType- Returns:
trueif the server is closed- See Also:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStServerType- Throws:
StException
-
toString
-