From de19ad9e7157f1b03442f7e1f8136a4f280c0f2f Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Mon, 15 Aug 2011 16:47:56 +0000 Subject: QPID-3423 - Timing and Performance Improvements in QMF Libraries git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1157907 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qmf/AgentSession.h | 5 +++++ cpp/include/qmf/ConsoleSession.h | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'cpp/include') diff --git a/cpp/include/qmf/AgentSession.h b/cpp/include/qmf/AgentSession.h index 1eeb252143..5ecfb0412c 100644 --- a/cpp/include/qmf/AgentSession.h +++ b/cpp/include/qmf/AgentSession.h @@ -71,6 +71,11 @@ namespace qmf { * If False: Listen only on the routable direct address * strict-security:{True,False} - If True: Cooperate with the broker to enforce strict access control to the network * - If False: Operate more flexibly with regard to use of messaging facilities [default] + * max-thread-wait-time:N - Time (in seconds) the session thread will wait for messages from the network between + * periodic background processing passes. [default: 5] + * Must not be greater than 'interval'. Larger numbers will cause fewer wake-ups but will + * increase the time it takes to shut down the process. This setting will not affect the + * agent's response time for queries or method invocation. */ QMF_EXTERN AgentSession(qpid::messaging::Connection& conn, const std::string& options=""); diff --git a/cpp/include/qmf/ConsoleSession.h b/cpp/include/qmf/ConsoleSession.h index 6008036eec..5e3a091e5d 100644 --- a/cpp/include/qmf/ConsoleSession.h +++ b/cpp/include/qmf/ConsoleSession.h @@ -61,6 +61,10 @@ namespace qmf { * If False: Listen only on the routable direct address * strict-security:{True,False} - If True: Cooperate with the broker to enforce strict access control to the network * - If False: Operate more flexibly with regard to use of messaging facilities [default] + * max-thread-wait-time:N - Time (in seconds) the session thread will wait for messages from the network between + * periodic background processing passes. + * Must not be greater than 60. Larger numbers will cause fewer wake-ups but will + * increase the time it takes to shut down the process. [default: 5] */ QMF_EXTERN ConsoleSession(qpid::messaging::Connection& conn, const std::string& options=""); -- cgit v1.2.1