- Added documentation for `start()` and `stop()`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-04-07 12:16:13 +02:00
parent 3bda88267b
commit b7bb3df7c9
1 changed files with 10 additions and 4 deletions

View File

@ -68,14 +68,21 @@ public class Manager
this.watcher = new Watcher(this, socket);
}
// TODO: comment
// Starts the watcher
/**
* Starts the management of the socket,
* resulting in queues being updated upon
* reciving messages tagged for them
*/
public void start()
{
watcher.startWatcher();
}
// Stops the watcher
/**
* Stops the management of the socket, resulting
* in ending the updating of queues and closing
* the underlying connection
*/
public void stop()
{
watcher.shutdown();
@ -286,7 +293,6 @@ public class Manager
return potentialDefaultQueue;
}
/**
* Returns the default queue
*