diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-08-05 19:33:11 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-08-05 19:33:11 +0000 |
| commit | 2c5100e6829529ea0df4463c5d914d613e45c1c8 (patch) | |
| tree | c27e316d892edf5ac42348825a0ba2079f7f80a7 /java/common/Invoker.tpl | |
| parent | b5f8cf1bd9b5652e2691d6bc5b9b1c3228f53d68 (diff) | |
| download | qpid-python-2c5100e6829529ea0df4463c5d914d613e45c1c8.tar.gz | |
Profiling driven changes:
- made AMQShortString cache the toString() value
- added static initializer to IoTransport to disable use of pooled
byte buffers
- modified IoSender to permit buffering
- removed OutputHandler and eliminated intermediate Frame generation
between Disassembler and Sender<ByteBuffer> (IoSender)
- made Disassembler take advantage of IoSender's buffering
- removed Header and Data as distinct protocol events, added Header
and Body members to MessageTransfer
- modified Assembler and Disassembler to decode/encode Header and
Data directly to/from MessageTransfer
- modified Disassembler to only write data if encoding of headers is
successful
- added Strings.toUTF8(String) -> byte[] to do proper UTF-8 encoding
that is also fast for 7-bit ascii
- modified JMSTextMessage to use the Strings.toUTF8
- modified QpidBench to only generate 7-bit ascii when using
TextMessage
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@682887 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/Invoker.tpl')
| -rw-r--r-- | java/common/Invoker.tpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/common/Invoker.tpl b/java/common/Invoker.tpl index 21a17624a6..9158922df7 100644 --- a/java/common/Invoker.tpl +++ b/java/common/Invoker.tpl @@ -1,5 +1,6 @@ package org.apache.qpid.transport; +import java.nio.ByteBuffer; import java.util.List; import java.util.Map; import java.util.UUID; @@ -32,9 +33,9 @@ for c in composites: jclass = "" out(""" - public final $jresult $(dromedary(name))($(", ".join(params))) { - $(jreturn)invoke(new $name($(", ".join(args)))$jclass); - } + public final $jresult $(dromedary(name))($(", ".join(params))) { + $(jreturn)invoke(new $name($(", ".join(args)))$jclass); + } """) } |
