Package org.hornetq.api.core

Examples of org.hornetq.api.core.HornetQBuffer.writeLong()


      // The standard header fields

      buffer.writeInt(0); // The length gets filled in at the end
      buffer.writeByte(type);
      buffer.writeLong(channelID);

      encodeRest(buffer);

      size = buffer.writerIndex();
View Full Code Here


      if (buffer.writerIndex() != message.getEndOfMessagePosition())
      {
         throw new IllegalStateException("Wrong encode position");
      }

      buffer.writeLong(consumerID);
      buffer.writeInt(deliveryCount);

      size = buffer.writerIndex();

      // Write standard headers
View Full Code Here

      // The standard header fields

      buffer.writeInt(0); // The length gets filled in at the end
      buffer.writeByte(type);
      buffer.writeLong(channelID);

      encodeRest(buffer);

      size = buffer.writerIndex();
View Full Code Here

      // The standard header fields

      buffer.writeInt(0); // The length gets filled in at the end
      buffer.writeByte(type);
      buffer.writeLong(channelID);

      encodeRest(buffer);

      size = buffer.writerIndex();
View Full Code Here

   private HornetQBuffer createRandomBuffer(final long id, final int size)
   {
      HornetQBuffer buffer = HornetQBuffers.fixedBuffer(size + 8);

      buffer.writeLong(id);

      for (int j = 8; j < buffer.capacity(); j++)
      {
         buffer.writeByte((byte)66);
      }
View Full Code Here

      // The standard header fields

      buffer.writeInt(0); // The length gets filled in at the end
      buffer.writeByte(type);
      buffer.writeLong(channelID);

      encodeRest(buffer);

      size = buffer.writerIndex();
View Full Code Here

   {
      HornetQBuffer buffer = HornetQBuffers.fixedBuffer(size + 8 * data.length);

      for (long d : data)
      {
         buffer.writeLong(d);
      }

      for (int i = 0 ; i < size; i++)
      {
         buffer.writeByte((byte)randomByte());
View Full Code Here

      // The standard header fields

      buffer.writeInt(0); // The length gets filled in at the end
      buffer.writeByte(type);
      buffer.writeLong(channelID);

      encodeRest(buffer);

      size = buffer.writerIndex();
View Full Code Here

   {
      HornetQBuffer buffer = HornetQBuffers.fixedBuffer(size + 8 * data.length);

      for (long d : data)
      {
         buffer.writeLong(d);
      }

      for (int i = 0 ; i < size; i++)
      {
         buffer.writeByte((byte)randomByte());
View Full Code Here

      // The standard header fields

      buffer.writeInt(0); // The length gets filled in at the end
      buffer.writeByte(type);
      buffer.writeLong(channelID);

      encodeRest(buffer);

      size = buffer.writerIndex();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.