Skip to content

qie.getOutboundCount

Signature: qie.getOutboundCount(endpointId*)

Returns: Integer outboundCount - the number of messages in the outbound queue

Returns the current number of messages in the outbound queue(s).

Note

endpointId is optional. When not specified, the count covers every endpoint on the channel rather than one of them. Supplying a blank or null endpointId throws an exception.

Parameters

Type Name Description Default
String endpointId* (optional) the endpoint ID specified on the destination node configuration page. If not specified the default behavior is to return the total of all outbound messages for the channel.

Example

/* From Source Script */
if (qie.getOutboundCount() < 15) {
   qie.addInboundMessage('{"status":"Take it easy on the remote system"}', 'sample.json');
}