diff options
Diffstat (limited to 'cpp/src/Glacier2/Blobject.cpp')
-rw-r--r-- | cpp/src/Glacier2/Blobject.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/Glacier2/Blobject.cpp b/cpp/src/Glacier2/Blobject.cpp index 779dc292615..7f1f5244ca5 100644 --- a/cpp/src/Glacier2/Blobject.cpp +++ b/cpp/src/Glacier2/Blobject.cpp @@ -13,8 +13,14 @@ using namespace std; using namespace Ice; using namespace Glacier; +static const string serverAlwaysBatch = "Glacier2.Server.AlwaysBatch"; +static const string clientAlwaysBatch = "Glacier2.Client.AlwaysBatch"; + Glacier::Blobject::Blobject(const CommunicatorPtr& communicator, bool reverse) : - _logger(communicator->getLogger()) + _logger(communicator->getLogger()), + _alwaysBatch(reverse ? + communicator->getProperties()->getPropertyAsInt(serverAlwaysBatch) > 0 : + communicator->getProperties()->getPropertyAsInt(clientAlwaysBatch) > 0) { _requestQueue = new RequestQueue(communicator, reverse); _requestQueueControl = _requestQueue->start(); |