From f739d191af76b1b22416f914212153db40abc17d Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 8 Dec 2008 02:18:03 +0000 Subject: OutputControl and subclasses: added giveReadCredit() for IO level flow control. Cluster: Set read credit limit for cluster connections. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@724233 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionState.cpp | 5 +++++ cpp/src/qpid/broker/SessionState.h | 1 + 2 files changed, 6 insertions(+) (limited to 'cpp/src/qpid/broker') diff --git a/cpp/src/qpid/broker/SessionState.cpp b/cpp/src/qpid/broker/SessionState.cpp index fe10345499..4f088fdf4c 100644 --- a/cpp/src/qpid/broker/SessionState.cpp +++ b/cpp/src/qpid/broker/SessionState.cpp @@ -121,6 +121,11 @@ void SessionState::activateOutput() { getConnection().outputTasks.activateOutput(); } +void SessionState::giveReadCredit(int32_t credit) { + if (isAttached()) + getConnection().outputTasks.giveReadCredit(credit); +} + ManagementObject* SessionState::GetManagementObject (void) const { return (ManagementObject*) mgmtObject; diff --git a/cpp/src/qpid/broker/SessionState.h b/cpp/src/qpid/broker/SessionState.h index f3b85bbd05..035a444127 100644 --- a/cpp/src/qpid/broker/SessionState.h +++ b/cpp/src/qpid/broker/SessionState.h @@ -86,6 +86,7 @@ class SessionState : public qpid::SessionState, /** OutputControl **/ void activateOutput(); + void giveReadCredit(int32_t); void senderCompleted(const framing::SequenceSet& ranges); -- cgit v1.2.1