Inspirel banner

Programming Distributed Systems with YAMI4

7.3.2 Get

The ``get'' command allows to obtain data from the front of the given queue. This command has the following structure:

Object name: name of the queue.

Message name: "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 stored as waiting, in which case it will be replied to only when a put request is received from one of the clients. If the operation is requested for the queue that does not exist, it will be created automatically if allowed by the configuration (and the request will be immediately stored as waiting) - otherwise the request will be rejected.