Class AmqpWritableBuffer

java.lang.Object
org.apache.qpid.jms.provider.amqp.message.AmqpWritableBuffer
All Implemented Interfaces:
org.apache.qpid.proton.codec.WritableBuffer

public class AmqpWritableBuffer extends Object implements org.apache.qpid.proton.codec.WritableBuffer
Writable Buffer implementation based on a Netty ByteBuf
  • Field Details

    • INITIAL_CAPACITY

      public static final int INITIAL_CAPACITY
      See Also:
    • nettyBuffer

      public io.netty.buffer.ByteBuf nettyBuffer
  • Constructor Details

    • AmqpWritableBuffer

      public AmqpWritableBuffer()
    • AmqpWritableBuffer

      public AmqpWritableBuffer(io.netty.buffer.ByteBuf buffer)
  • Method Details

    • getBuffer

      public io.netty.buffer.ByteBuf getBuffer()
    • put

      public void put(byte b)
      Specified by:
      put in interface org.apache.qpid.proton.codec.WritableBuffer
    • putFloat

      public void putFloat(float f)
      Specified by:
      putFloat in interface org.apache.qpid.proton.codec.WritableBuffer
    • putDouble

      public void putDouble(double d)
      Specified by:
      putDouble in interface org.apache.qpid.proton.codec.WritableBuffer
    • put

      public void put(byte[] src, int offset, int length)
      Specified by:
      put in interface org.apache.qpid.proton.codec.WritableBuffer
    • put

      public void put(ByteBuffer payload)
      Specified by:
      put in interface org.apache.qpid.proton.codec.WritableBuffer
    • put

      public void put(io.netty.buffer.ByteBuf payload)
    • putShort

      public void putShort(short s)
      Specified by:
      putShort in interface org.apache.qpid.proton.codec.WritableBuffer
    • putInt

      public void putInt(int i)
      Specified by:
      putInt in interface org.apache.qpid.proton.codec.WritableBuffer
    • putLong

      public void putLong(long l)
      Specified by:
      putLong in interface org.apache.qpid.proton.codec.WritableBuffer
    • put

      public void put(String value)
      Specified by:
      put in interface org.apache.qpid.proton.codec.WritableBuffer
    • hasRemaining

      public boolean hasRemaining()
      Specified by:
      hasRemaining in interface org.apache.qpid.proton.codec.WritableBuffer
    • remaining

      public int remaining()
      Specified by:
      remaining in interface org.apache.qpid.proton.codec.WritableBuffer
    • ensureRemaining

      public void ensureRemaining(int remaining)
      Specified by:
      ensureRemaining in interface org.apache.qpid.proton.codec.WritableBuffer
    • position

      public int position()
      Specified by:
      position in interface org.apache.qpid.proton.codec.WritableBuffer
    • position

      public void position(int position)
      Specified by:
      position in interface org.apache.qpid.proton.codec.WritableBuffer
    • limit

      public int limit()
      Specified by:
      limit in interface org.apache.qpid.proton.codec.WritableBuffer
    • put

      public void put(org.apache.qpid.proton.codec.ReadableBuffer buffer)
      Specified by:
      put in interface org.apache.qpid.proton.codec.WritableBuffer