summaryrefslogtreecommitdiff
path: root/cpp/lib/common/framing/Requester.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/common/framing/Requester.h')
-rw-r--r--cpp/lib/common/framing/Requester.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/lib/common/framing/Requester.h b/cpp/lib/common/framing/Requester.h
index 562ba681c1..dae5b1eaee 100644
--- a/cpp/lib/common/framing/Requester.h
+++ b/cpp/lib/common/framing/Requester.h
@@ -46,6 +46,9 @@ class Requester
/** Called after processing a response. */
void processed(const AMQResponseBody::Data&);
+ /** Get the next id to be used. */
+ RequestId getNextId() { return lastId + 1; }
+
private:
std::set<RequestId> requests; /** Sent but not responded to */
RequestId lastId;