[jboss-cvs] JBoss Messaging SVN: r5962 - in trunk: src/main/org/jboss/messaging/core/buffers and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 2 11:55:09 EST 2009
Author: clebert.suconic at jboss.com
Date: 2009-03-02 11:55:09 -0500 (Mon, 02 Mar 2009)
New Revision: 5962
Modified:
trunk/build-messaging.xml
trunk/src/main/org/jboss/messaging/core/buffers/package.html
trunk/src/main/org/jboss/messaging/integration/transports/netty/NettyConnection.java
Log:
JBMESSAGING-1394 - making Buffers fixed size on NettyConnection and few other tweaks
Modified: trunk/build-messaging.xml
===================================================================
--- trunk/build-messaging.xml 2009-03-02 14:34:00 UTC (rev 5961)
+++ trunk/build-messaging.xml 2009-03-02 16:55:09 UTC (rev 5962)
@@ -665,6 +665,7 @@
<fileset dir="${build.core.classes.dir}">
<include name="version.properties"/>
<include name="org/jboss/messaging/core/client/**/*.class"/>
+ <include name="org/jboss/messaging/core/buffers/**/*.class"/>
<include name="org/jboss/messaging/core/exception/**/*.class"/>
<include name="org/jboss/messaging/core/logging/**/*.class"/>
<include name="org/jboss/messaging/core/remoting/**/*.class"/>
Modified: trunk/src/main/org/jboss/messaging/core/buffers/package.html
===================================================================
--- trunk/src/main/org/jboss/messaging/core/buffers/package.html 2009-03-02 14:34:00 UTC (rev 5961)
+++ trunk/src/main/org/jboss/messaging/core/buffers/package.html 2009-03-02 16:55:09 UTC (rev 5962)
@@ -36,7 +36,7 @@
<p> buffer(final int capacity) - This method will create a fixed size MessagingBuffer </p>
-<p> wrappedBuffer(final byte[] array) - It will create a Buffer, with writePosition at the end, and readPosition at 0 </p>
+<p> wrappedBuffer(final byte[] array) - It will wrap a byte[] on a Buffer, with writePosition at the end, and readPosition at 0 </p>
<p> wrappedBuffer(final ByteBuffer buffer) - It will wrap a Bytebuffer on a MessagingBuffer. The position on this buffer won't affect the position on the inner buffer </p>
Modified: trunk/src/main/org/jboss/messaging/integration/transports/netty/NettyConnection.java
===================================================================
--- trunk/src/main/org/jboss/messaging/integration/transports/netty/NettyConnection.java 2009-03-02 14:34:00 UTC (rev 5961)
+++ trunk/src/main/org/jboss/messaging/integration/transports/netty/NettyConnection.java 2009-03-02 16:55:09 UTC (rev 5962)
@@ -113,9 +113,9 @@
listener.connectionDestroyed(getID());
}
- public MessagingBuffer createBuffer(int size)
+ public MessagingBuffer createBuffer(final int size)
{
- return new ChannelBufferWrapper(org.jboss.netty.buffer.ChannelBuffers.dynamicBuffer(size));
+ return new ChannelBufferWrapper(org.jboss.netty.buffer.ChannelBuffers.buffer(size));
}
public Object getID()
More information about the jboss-cvs-commits
mailing list