Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / src / direct / Transaction.js
1 /*!
2  * Ext JS Library 3.0.3
3  * Copyright(c) 2006-2009 Ext JS, LLC
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 /**\r
8  * @class Ext.Direct.Transaction\r
9  * @extends Object\r
10  * <p>Supporting Class for Ext.Direct (not intended to be used directly).</p>\r
11  * @constructor\r
12  * @param {Object} config\r
13  */\r
14 Ext.Direct.Transaction = function(config){\r
15     Ext.apply(this, config);\r
16     this.tid = ++Ext.Direct.TID;\r
17     this.retryCount = 0;\r
18 };\r
19 Ext.Direct.Transaction.prototype = {\r
20     send: function(){\r
21         this.provider.queueTransaction(this);\r
22     },\r
23 \r
24     retry: function(){\r
25         this.retryCount++;\r
26         this.send();\r
27     },\r
28 \r
29     getProvider: function(){\r
30         return this.provider;\r
31     }\r
32 };