X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/src/direct/Transaction.js diff --git a/src/direct/Transaction.js b/src/direct/Transaction.js new file mode 100644 index 00000000..ee56277e --- /dev/null +++ b/src/direct/Transaction.js @@ -0,0 +1,32 @@ +/*! + * Ext JS Library 3.0.0 + * Copyright(c) 2006-2009 Ext JS, LLC + * licensing@extjs.com + * http://www.extjs.com/license + */ +/** + * @class Ext.Direct.Transaction + * @extends Object + *

Supporting Class for Ext.Direct (not intended to be used directly).

+ * @constructor + * @param {Object} config + */ +Ext.Direct.Transaction = function(config){ + Ext.apply(this, config); + this.tid = ++Ext.Direct.TID; + this.retryCount = 0; +}; +Ext.Direct.Transaction.prototype = { + send: function(){ + this.provider.queueTransaction(this); + }, + + retry: function(){ + this.retryCount++; + this.send(); + }, + + getProvider: function(){ + return this.provider; + } +}; \ No newline at end of file