PageRenderTime 25ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/hippo/src/main/webapp/ext/src/direct/Transaction.js

http://hdbc.googlecode.com/
JavaScript | 32 lines | 17 code | 2 blank | 13 comment | 0 complexity | 0424d22b28fcb0605669489ed5d27aa5 MD5 | raw file
 1/*!
 2 * Ext JS Library 3.0.0
 3 * Copyright(c) 2006-2009 Ext JS, LLC
 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 */
14Ext.Direct.Transaction = function(config){
15    Ext.apply(this, config);
16    this.tid = ++Ext.Direct.TID;
17    this.retryCount = 0;
18};
19Ext.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};