Example #1
0
ProxyFlushBatch::ProxyFlushBatch(const Ice::ObjectPrxPtr& proxy, const string& operation) :
    ProxyOutgoingBase(proxy, ICE_ENUM(OperationMode, Normal))
{
    checkSupportedProtocol(getCompatibleProtocol(proxy->__reference()->getProtocol()));
    _observer.attach(proxy, operation, ::Ice::noExplicitContext);

    _batchRequestNum = proxy->__getBatchRequestQueue()->swap(&_os);
}