James Kingdon's post of 9 December is responsive, but facilities that return the current length/depth of a queue, the current size/node count of a binary-search tree, etc., etc., do not really require detailed individual justification.
 
They should always be provided. 
 
Failure to do so ensures the encapsulation of a facility will be breached repeatedly by users trying to extract this datum from a control block (where it should be available) or determine it by traversing , here, the queue.
 
The absence of a query facility for MQJMS is, to put the matter brutally, a design defect.
John Gilmore
SystemCraft LLC

The opinions expressed above are mine alone. In particular, they are not necessarily shared by my company or its clients.

Reply via email to