Added some comments

This commit is contained in:
Tristan B. Velloza Kildaire 2021-09-09 18:02:45 +02:00
parent df4d479e54
commit ddd46f3388
1 changed files with 14 additions and 0 deletions

View File

@ -126,6 +126,13 @@ public final class Manager
return queues;
}
/**
* Removes the given Queue, `queue`, from the manager
*
* Throws a TristanableException if the id of the
* queue wanting to be removed is not in use by any
* queue already added
*/
public void removeQueue(Queue queue)
{
queuesLock.lock();
@ -145,6 +152,13 @@ public final class Manager
queuesLock.unlock();
}
/**
* Adds the given Queue, `queue`, to the manager
*
* Throws a TristanableException if the id of the
* queue wanting to be added is already in use by
* another already added queue
*/
public void addQueue(Queue queue)
{
queuesLock.lock();