Skip to content

qie.getInstanceOutboundCount

Signature: qie.getInstanceOutboundCount(endpointId*)

Returns: Integer outboundCount - the number of messages in the outbound queue for the specific node instance in an HA environment

Returns the current number of messages in the outbound queue(s) for the specific node instance in the HA environment making the call to this method. Outbound queue totals for other nodes in the cluster are not included in the result.

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 for the specific node instance in an HA environment. null

Example

/* From Source Script in a QIE instance configured in HA mode. */
if (qie.getInstanceOutboundCount() < 15) {
   qie.addInboundMessage('{"status":"Take it easy on the remote system"}', 'sample.json');
}