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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.qpid.proton.codec.WritableBuffer
org.apache.qpid.proton.codec.WritableBuffer.ByteBufferWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intio.netty.buffer.ByteBuf -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidensureRemaining(int remaining) io.netty.buffer.ByteBufbooleanintlimit()intposition()voidposition(int position) voidput(byte b) voidput(byte[] src, int offset, int length) voidput(io.netty.buffer.ByteBuf payload) voidvoidput(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) int
-
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:
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
- 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
- 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
-