summaryrefslogtreecommitdiff
path: root/js/src/Ice/ConnectionBatchOutgoingAsync.js
blob: f4f4d801544c0231e253850c97a8902822d94447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// **********************************************************************
//
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_FOR_ACTIONSCRIPT_LICENSE file included in this distribution.
//
// **********************************************************************

(function(global){
    require("Ice/Class");
    require("Ice/BatchOutgoingAsync");

    var Ice = global.Ice || {};

    var BatchOutgoingAsync = Ice.BatchOutgoingAsync;

    Ice.ConnectionBatchOutgoingAsync = Ice.Class(BatchOutgoingAsync, {
        __init__: function(con, communicator, operation)
        {
            BatchOutgoingAsync.call(this, communicator, operation);
            this._connection = con;
        },
        __send: function()
        {
            this._connection.flushAsyncBatchRequests(this);
        }
    });
    global.Ice = Ice;
}(typeof (global) === "undefined" ? window : global));