summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/CollocatedRequestHandler.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2015-03-10 12:12:10 +0100
committerBenoit Foucher <benoit@zeroc.com>2015-03-10 12:12:10 +0100
commitc6ca68d97aa5bbc2a172e3e35171b5452657fa22 (patch)
tree46edcca4c8e313285a205bf6fad7c56c452c0cc0 /cpp/src/Ice/CollocatedRequestHandler.h
parentMinor JS style fixes (diff)
downloadice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.tar.bz2
ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.tar.xz
ice-c6ca68d97aa5bbc2a172e3e35171b5452657fa22.zip
ICE-6170 - fixed behavior of batch requests
Diffstat (limited to 'cpp/src/Ice/CollocatedRequestHandler.h')
-rw-r--r--cpp/src/Ice/CollocatedRequestHandler.h27
1 files changed, 7 insertions, 20 deletions
diff --git a/cpp/src/Ice/CollocatedRequestHandler.h b/cpp/src/Ice/CollocatedRequestHandler.h
index 751e8f24e7d..248984ed647 100644
--- a/cpp/src/Ice/CollocatedRequestHandler.h
+++ b/cpp/src/Ice/CollocatedRequestHandler.h
@@ -43,15 +43,10 @@ public:
CollocatedRequestHandler(const ReferencePtr&, const Ice::ObjectAdapterPtr&);
virtual ~CollocatedRequestHandler();
- virtual RequestHandlerPtr connect(const Ice::ObjectPrx&);
virtual RequestHandlerPtr update(const RequestHandlerPtr&, const RequestHandlerPtr&);
- virtual void prepareBatchRequest(BasicStream*);
- virtual void finishBatchRequest(BasicStream*);
- virtual void abortBatchRequest();
-
- virtual bool sendRequest(OutgoingBase*);
- virtual AsyncStatus sendAsyncRequest(const OutgoingAsyncBasePtr&);
+ virtual bool sendRequest(ProxyOutgoingBase*);
+ virtual AsyncStatus sendAsyncRequest(const ProxyOutgoingAsyncBasePtr&);
virtual void requestCanceled(OutgoingBase*, const Ice::LocalException&);
virtual void asyncRequestCanceled(const OutgoingAsyncBasePtr&, const Ice::LocalException&);
@@ -66,15 +61,13 @@ public:
virtual Ice::ConnectionIPtr getConnection();
virtual Ice::ConnectionIPtr waitForConnection();
- void invokeRequest(Outgoing*);
- AsyncStatus invokeAsyncRequest(OutgoingAsync*);
- void invokeBatchRequests(OutgoingBase*);
- AsyncStatus invokeAsyncBatchRequests(OutgoingAsyncBase*);
+ void invokeRequest(OutgoingBase*, int);
+ AsyncStatus invokeAsyncRequest(OutgoingAsyncBase*, int);
bool sent(OutgoingBase*);
bool sentAsync(OutgoingAsyncBase*);
- void invokeAll(BasicStream*, Ice::Int, Ice::Int, bool);
+ void invokeAll(BasicStream*, Ice::Int, Ice::Int);
private:
@@ -84,20 +77,14 @@ private:
const bool _dispatcher;
const Ice::LoggerPtr _logger;
const TraceLevelsPtr _traceLevels;
- const size_t _batchAutoFlushSize;
int _requestId;
std::map<OutgoingBase*, Ice::Int> _sendRequests;
std::map<OutgoingAsyncBasePtr, Ice::Int> _sendAsyncRequests;
- std::map<Ice::Int, Outgoing*> _requests;
- std::map<Ice::Int, OutgoingAsyncPtr> _asyncRequests;
-
- bool _batchStreamInUse;
- int _batchRequestNum;
- BasicStream _batchStream;
- size_t _batchMarker;
+ std::map<Ice::Int, OutgoingBase*> _requests;
+ std::map<Ice::Int, OutgoingAsyncBasePtr> _asyncRequests;
};
typedef IceUtil::Handle<CollocatedRequestHandler> CollocatedRequestHandlerPtr;