Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
BatchRequest.h
1// Copyright (c) ZeroC, Inc.
2
3#ifndef ICE_BATCH_REQUEST_H
4#define ICE_BATCH_REQUEST_H
5
6#include "Config.h"
7
8#include <string_view>
9
10namespace Ice
11{
12 class ObjectPrx;
13
14 /// Represents a batch request. A batch request is created by invoking an operation on a batch-oneway or
15 /// batch-datagram proxy.
16 /// @headerfile Ice/Ice.h
17 class ICE_API BatchRequest
18 {
19 public:
20 virtual ~BatchRequest();
21
22 /// Queues this request.
23 virtual void enqueue() const = 0;
24
25 /// Gets the size of the request.
26 /// @return The number of bytes consumed by the request.
27 [[nodiscard]] virtual int getSize() const = 0;
28
29 /// Gets the name of the operation.
30 /// @return The operation name.
31 [[nodiscard]] virtual std::string_view getOperation() const = 0;
32
33 /// Gets the proxy used to create this batch request.
34 /// @return The proxy.
35 [[nodiscard]] virtual const ObjectPrx& getProxy() const = 0;
36 };
37}
38
39#endif
virtual int getSize() const =0
Gets the size of the request.
virtual std::string_view getOperation() const =0
Gets the name of the operation.
virtual const ObjectPrx & getProxy() const =0
Gets the proxy used to create this batch request.
virtual void enqueue() const =0
Queues this request.
Represents a batch request.
The base class for all Ice proxies.
Definition Proxy.h:232
The Ice RPC framework.
Definition SampleEvent.h:59