for (ImmutablePair<String, String> pair : queueNameContexts) {
// The paths would be /flowId/flowletId/queueSimpleName
enqueue += sumAll(aggregatesTable.scan(pair.getSecond(), "process.events.out", "0", pair.getFirst()));
}
for (String streamName : streamNames) {
enqueue += sumAll(aggregatesTable.scan(Constants.Gateway.METRICS_CONTEXT, "collect.events", "0", streamName));
}
long len = enqueue - processed;
return new AggregateResponse(len >= 0 ? len : 0);
}