Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / src / direct / Transaction.js
diff --git a/src/direct/Transaction.js b/src/direct/Transaction.js
new file mode 100644 (file)
index 0000000..ee56277
--- /dev/null
@@ -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
+ */
+/**\r
+ * @class Ext.Direct.Transaction\r
+ * @extends Object\r
+ * <p>Supporting Class for Ext.Direct (not intended to be used directly).</p>\r
+ * @constructor\r
+ * @param {Object} config\r
+ */\r
+Ext.Direct.Transaction = function(config){\r
+    Ext.apply(this, config);\r
+    this.tid = ++Ext.Direct.TID;\r
+    this.retryCount = 0;\r
+};\r
+Ext.Direct.Transaction.prototype = {\r
+    send: function(){\r
+        this.provider.queueTransaction(this);\r
+    },\r
+\r
+    retry: function(){\r
+        this.retryCount++;\r
+        this.send();\r
+    },\r
+\r
+    getProvider: function(){\r
+        return this.provider;\r
+    }\r
+};
\ No newline at end of file