Note: Unlike the Java equivalent, this does not accept regular expressions * for the range. It must be an explicit value. * * @param {String} * range - eg "MQRC" or "MQIA" * @param {int} * value - the value to convert * @return {String} The string or null if no matching value or range. * */ function Lookup(range: string, val: number): string | null; /** * @property {number} getLoopPollTimeMs - Milliseconds between each full poll cycle. * Default is 10000 (10 seconds) * @property {number} getLoopDelayTimeMs - Milliseconds to delay after a partial poll cycle. * Default is 250 (1/4 second) * @property {number} maxConsecutiveGets - How many messages to get from a queue before trying a different queue. * Default is 100 * @property {boolean} syncMQICompat - Make the MQI verbs all use the Synchronous model (the * original style for this package). * Default is false * @property {boolean} debugLog - Turn on debug logging dynamically. * Default is false */ interface TuningParameters { getLoopPollTimeMs?: number; getLoopDelayTimeMs?: number; maxConsecutiveGets?: number; syncMQICompat?: boolean; debugLongCalls?: boolean; debugLog?: boolean; } /** * setTuningParameters - Override values used to tune behaviour *
These properties affect the "fairness" heuristics that manage the * scheduling of message retrieval in a high-workload system. * * @throws {TypeError} * When the parameter or its properties is of incorrect type * @example * console.log("Tuning parms are %j",mq.getTuningParameters()); * mq.setTuningParameters({maxConsecutiveGets:20}); * console.log("Tuning parms are now %j",mq.getTuningParameters()); */ function setTuningParameters(parms: TuningParameters); /** * getTuningParameters * @return Object containing the current values */ function getTuningParameters(): TuningParameters; }