Added more javadocs!
This commit is contained in:
parent
108cc556d7
commit
b1fb2cdfb0
|
@ -27,10 +27,24 @@ import java.util.concurrent.TimeUnit;
|
|||
* The main server implementation, which handles accepting new clients.
|
||||
*/
|
||||
public class ConcordServer implements Runnable {
|
||||
/**
|
||||
* The path to this server's configuration file.
|
||||
*/
|
||||
private static final Path CONFIG_FILE = Path.of("server-config.json");
|
||||
|
||||
/**
|
||||
* The path to this server's database file.
|
||||
*/
|
||||
private static final Path DATABASE_FILE = Path.of("concord-server.db");
|
||||
|
||||
/**
|
||||
* Running flag that's used to signal this server's thread to shutdown.
|
||||
*/
|
||||
private volatile boolean running;
|
||||
|
||||
/**
|
||||
* This server's socket, used to accept new client connections.
|
||||
*/
|
||||
private final ServerSocket serverSocket;
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,10 +23,29 @@ import java.util.stream.Collectors;
|
|||
* to a server.
|
||||
*/
|
||||
public class ClientManager {
|
||||
/**
|
||||
* A reference to the server that this client manager is for.
|
||||
*/
|
||||
private final ConcordServer server;
|
||||
|
||||
/**
|
||||
* The set of connected clients, mapped by their id.
|
||||
*/
|
||||
private final Map<UUID, ClientThread> clients;
|
||||
|
||||
/**
|
||||
* The set of connected pending clients, mapped by their id.
|
||||
*/
|
||||
private final Map<UUID, ClientThread> pendingClients;
|
||||
|
||||
/**
|
||||
* The nitrite collection containing user data.
|
||||
*/
|
||||
private final NitriteCollection userCollection;
|
||||
|
||||
/**
|
||||
* The service to use to authenticate incoming connections.
|
||||
*/
|
||||
private final AuthenticationService authService;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue