Inspirel banner

Programming Distributed Systems with YAMI4

7.3.3 Try-Get

The ``try-get'' command allows to obtain data from the front of the given queue, but without waiting if the data is not available. Instead, if the given queue does not exist or if there is no data immediately available in the queue, the request is rejected. This command has the following structure:

Object name: name of the queue.

Message name: "try-get".

Message content: ignored.

The queue server replies with a content object if the given queue contains at least one message - otherwise the request is rejected.