MessageDeliveryTransport

- Documented the interface
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-23 09:44:52 +02:00
parent f11c81d599
commit 8a572978af
1 changed files with 15 additions and 1 deletions

View File

@ -161,7 +161,21 @@ public class Queue
}
}
/**
* Defines an interface of methods
* which are to be called whenever
* new messages are enqueued onto
* a so-called "incoming" (recv-q)
* and "outgoing" (send-q) queues
*
* The `MessageManager` will use
* these as the hooks it applies
* to its send/recv queues.
*
* An example usage of this is
* to allow `Server` to get notified
* whenever a new item appears.
*/
public interface MessageDeliveryTransport
{
// On incoming message