public class NettyWritable extends Object implements org.apache.qpid.proton.codec.WritableBuffer
WritableBuffer implementation that wraps a Netty ByteBuf to
allow use of Netty buffers to be used when encoding AMQP messages.| Constructor and Description |
|---|
NettyWritable(io.netty.buffer.ByteBuf nettyBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureRemaining(int remaining) |
io.netty.buffer.ByteBuf |
getByteBuf() |
boolean |
hasRemaining() |
int |
limit() |
int |
position() |
void |
position(int position) |
void |
put(byte b) |
void |
put(byte[] src,
int offset,
int length) |
void |
put(io.netty.buffer.ByteBuf payload) |
void |
put(ByteBuffer payload) |
void |
put(org.apache.qpid.proton.codec.ReadableBuffer buffer) |
void |
put(String value) |
void |
putDouble(double d) |
void |
putFloat(float f) |
void |
putInt(int i) |
void |
putLong(long l) |
void |
putShort(short s) |
int |
remaining() |
public io.netty.buffer.ByteBuf getByteBuf()
public void put(byte b)
put in interface org.apache.qpid.proton.codec.WritableBufferpublic void putFloat(float f)
putFloat in interface org.apache.qpid.proton.codec.WritableBufferpublic void putDouble(double d)
putDouble in interface org.apache.qpid.proton.codec.WritableBufferpublic void put(byte[] src,
int offset,
int length)
put in interface org.apache.qpid.proton.codec.WritableBufferpublic void putShort(short s)
putShort in interface org.apache.qpid.proton.codec.WritableBufferpublic void putInt(int i)
putInt in interface org.apache.qpid.proton.codec.WritableBufferpublic void putLong(long l)
putLong in interface org.apache.qpid.proton.codec.WritableBufferpublic boolean hasRemaining()
hasRemaining in interface org.apache.qpid.proton.codec.WritableBufferpublic int remaining()
remaining in interface org.apache.qpid.proton.codec.WritableBufferpublic void ensureRemaining(int remaining)
ensureRemaining in interface org.apache.qpid.proton.codec.WritableBufferpublic int position()
position in interface org.apache.qpid.proton.codec.WritableBufferpublic void position(int position)
position in interface org.apache.qpid.proton.codec.WritableBufferpublic void put(ByteBuffer payload)
put in interface org.apache.qpid.proton.codec.WritableBufferpublic void put(io.netty.buffer.ByteBuf payload)
public void put(String value)
put in interface org.apache.qpid.proton.codec.WritableBufferpublic int limit()
limit in interface org.apache.qpid.proton.codec.WritableBufferpublic void put(org.apache.qpid.proton.codec.ReadableBuffer buffer)
put in interface org.apache.qpid.proton.codec.WritableBufferCopyright © 2021 The Apache Software Foundation. All rights reserved.