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