Name

global.AWAQueueAverageWaitTimeExtPointImpl

Description

Implements extension point global.AWAQueueAverageWaitTimeExtPoint for calculating the average wait time for a queue. If an active implementation is provided, the result of calculateAverageWaitTimeForQueue will be used instead of the default implementation that averages the last 20 accepted work items. If a result of 0 (or lower) is returned, the queue will not be updated.

Script

var AWAQueueAverageWaitTimeExtPointImpl = Class.create();
AWAQueueAverageWaitTimeExtPointImpl.prototype = {
  initialize: function() {
  },

  /**
  * return the queue average wait time, in milliseconds
  */
  calculateAverageWaitTimeForQueue: function(queueID) {
  	return 0;
  },

  type: 'AWAQueueAverageWaitTimeExtPointImpl'
};

Sys ID

44ab0441732230104a905ee515f6a737

Offical Documentation

Official Docs: