Ice 3.7 C++11 API Reference
BatchRequestInterceptor.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_BATCH_REQUEST_INTERCEPTOR_H
6 #define ICE_BATCH_REQUEST_INTERCEPTOR_H
7 
8 #include <IceUtil/Shared.h>
9 #include <Ice/ProxyF.h>
10 
11 namespace Ice
12 {
13 
19 {
20 public:
21 
22  virtual ~BatchRequest()
23  {
24  }
25 
29  virtual void enqueue() const = 0;
30 
35  virtual int getSize() const = 0;
36 
41  virtual const std::string& getOperation() const = 0;
42 
47  virtual const Ice::ObjectPrxPtr& getProxy() const = 0;
48 };
49 
50 #ifndef ICE_CPP11_MAPPING
51 
57 class BatchRequestInterceptor : public IceUtil::Shared
58 {
59 public:
60 
67  virtual void enqueue(const BatchRequest& req, int count, int size) = 0;
68 };
69 typedef IceUtil::Handle<BatchRequestInterceptor> BatchRequestInterceptorPtr;
70 
71 #endif
72 
73 }
74 
75 #endif
Ice::BatchRequest
Represents an invocation on a proxy configured for batch-oneway or batch-datagram.
Definition: BatchRequestInterceptor.h:19
Ice::BatchRequest::getSize
virtual int getSize() const =0
Obtains the size of the request.
Ice::BatchRequest::enqueue
virtual void enqueue() const =0
Queues the request for an eventual flush.
ProxyF.h
Ice::BatchRequest::~BatchRequest
virtual ~BatchRequest()
Definition: BatchRequestInterceptor.h:22
Shared.h
Ice::BatchRequest::getProxy
virtual const Ice::ObjectPrxPtr & getProxy() const =0
Obtains the proxy on which the batch request was invoked.
Ice
Definition: BuiltinSequences.h:56
IceUtil::Handle
Definition: Handle.h:143
IceUtil::Shared
Definition: Shared.h:78
Ice::BatchRequest::getOperation
virtual const std::string & getOperation() const =0
Obtains the name of the operation.