diff options
| author | Alan Conway <aconway@apache.org> | 2008-05-26 18:10:05 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-05-26 18:10:05 +0000 |
| commit | 72456749101ecd33ce01f9c79f9e9082985154f6 (patch) | |
| tree | 016dbf2c6f17506e261a6658d325025a35921d81 /qpid/cpp/src/tests/perftest.cpp | |
| parent | c2441211409b15fa125323549281a28d3fbf2f55 (diff) | |
| download | qpid-python-72456749101ecd33ce01f9c79f9e9082985154f6.tar.gz | |
Changes to Session API:
- Session is synchronous, no futures.
- AsyncSession is async, returns futures.
- Conversion functions sync(s) async(s) return a sync/async view of session s.
- Connection::newSession - takes name, no timeout
- SessionBase::getId - returns SessionId not UUID.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@660258 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/perftest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/perftest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/perftest.cpp b/qpid/cpp/src/tests/perftest.cpp index 2a8a9ec17c..91ecd83f50 100644 --- a/qpid/cpp/src/tests/perftest.cpp +++ b/qpid/cpp/src/tests/perftest.cpp @@ -21,7 +21,7 @@ #include "TestOptions.h" -#include "qpid/client/Session.h" +#include "qpid/client/AsyncSession.h" #include "qpid/client/SubscriptionManager.h" #include "qpid/client/Connection.h" #include "qpid/client/Completion.h" @@ -194,12 +194,12 @@ Opts opts; struct Client : public Runnable { Connection connection; - Session session; + AsyncSession session; Thread thread; Client() { opts.open(connection); - session = connection.newSession(ASYNC); + session = connection.newSession(); } ~Client() { @@ -431,7 +431,7 @@ struct PublishThread : public Client { offset = 5; data += "data:";//marker (requested for latency testing tool scripts) data += string(sizeof(size_t), 'X');//space for seq no - data += string(reinterpret_cast<const char*>(session.getId().data()), session.getId().size()); + data += session.getId().str(); if (opts.size > data.size()) { data += string(opts.size - data.size(), 'X'); } else if(opts.size < data.size()) { |
