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 Summary
Fields Modifier and Type Field Description static intINITIAL_CAPACITYio.netty.buffer.ByteBufnettyBuffer
-
Constructor Summary
Constructors Constructor Description AmqpWritableBuffer()AmqpWritableBuffer(io.netty.buffer.ByteBuf buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureRemaining(int remaining)io.netty.buffer.ByteBufgetBuffer()booleanhasRemaining()intlimit()intposition()voidposition(int position)voidput(byte b)voidput(byte[] src, int offset, int length)voidput(io.netty.buffer.ByteBuf payload)voidput(String value)voidput(ByteBuffer payload)voidput(org.apache.qpid.proton.codec.ReadableBuffer buffer)voidputDouble(double d)voidputFloat(float f)voidputInt(int i)voidputLong(long l)voidputShort(short s)intremaining()
-
-
-
Field Detail
-
INITIAL_CAPACITY
public static final int INITIAL_CAPACITY
- See Also:
- Constant Field Values
-
nettyBuffer
public io.netty.buffer.ByteBuf nettyBuffer
-
-
Method Detail
-
getBuffer
public io.netty.buffer.ByteBuf getBuffer()
-
put
public void put(byte b)
- Specified by:
putin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putFloat
public void putFloat(float f)
- Specified by:
putFloatin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putDouble
public void putDouble(double d)
- Specified by:
putDoublein interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
put
public void put(byte[] src, int offset, int length)- Specified by:
putin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
put
public void put(ByteBuffer payload)
- Specified by:
putin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
put
public void put(io.netty.buffer.ByteBuf payload)
-
putShort
public void putShort(short s)
- Specified by:
putShortin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putInt
public void putInt(int i)
- Specified by:
putIntin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
putLong
public void putLong(long l)
- Specified by:
putLongin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
put
public void put(String value)
- Specified by:
putin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
hasRemaining
public boolean hasRemaining()
- Specified by:
hasRemainingin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
remaining
public int remaining()
- Specified by:
remainingin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
ensureRemaining
public void ensureRemaining(int remaining)
- Specified by:
ensureRemainingin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
position
public int position()
- Specified by:
positionin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
position
public void position(int position)
- Specified by:
positionin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
limit
public int limit()
- Specified by:
limitin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
put
public void put(org.apache.qpid.proton.codec.ReadableBuffer buffer)
- Specified by:
putin interfaceorg.apache.qpid.proton.codec.WritableBuffer
-
-