io-queue.js revision f54bfd7ba78fe5943d443088e8e9b48e10191318
/**
* Extends the IO base class to implement Queue for synchronous
* transaction processing.
* @module io
* @submodule io-queue
*/
/**
* @description Array of transactions queued for processing
*
* @property _q
* @private
* @static
* @type Object
*/
_qActiveId: null,
_qInit: false,
/**
* @description Property to determine whether the queue is set to
* 1 (active) or 0 (inactive). When inactive, transactions
* will be stored in the queue until the queue is set to active.
*
* @property _qState
* @private
* @static
* @type int
*/
_qState: 1,
/**
* @description Method Process the first transaction from the
* queue in FIFO order.
*
* @method _qShift
* @private
* @static
* @return void
*/
_qShift: function() {
var io = this,
},
/**
* @description Method for queueing a transaction
* before the request is sent to the resource, to ensure
* sequential processing.
*
* @method queue
* @public
* @static
* @return Object
*/
var io = this,
}
}
return o;
},
var io = this;
}
},
/**
* @description Method for promoting a transaction to the top of the queue.
*
* @method promote
* @public
* @static
* @return void
*/
qPromote: function(o) {
},
/**
* @description Method for removing a specific, pending transaction from
* the queue.
*
* @method remove
* @private
* @static
* @return void
*/
qRemove: function(o) {
},
qStart: function() {
var io = this;
}
},
/**
* @description Method for setting queue processing to inactive.
* Transaction requests to YUI.io.queue() will be stored in the queue, but
* not processed until the queue is reset to "active".
*
* @method _stop
* @private
* @static
* @return void
*/
qStop: function() {
this._qState = 0;
},
/**
* @description Method to query the current size of the queue.
*
* @method _size
* @private
* @static
* @return int
*/
qSize: function() {
}
}, true);
function _queue(u, c) {
}