public class CompositeAMQDataBlock extends AMQDataBlock implements EncodableAMQDataBlock
Constructor and Description |
---|
CompositeAMQDataBlock(AMQDataBlock[] blocks) |
Modifier and Type | Method and Description |
---|---|
AMQDataBlock[] |
getBlocks() |
long |
getSize()
Get the size of buffer needed to store the byte representation of this
frame.
|
String |
toString() |
long |
writePayload(ByteBufferSender sender) |
void |
writePayload(DataOutput buffer)
Writes the datablock to the specified buffer.
|
public CompositeAMQDataBlock(AMQDataBlock[] blocks)
public AMQDataBlock[] getBlocks()
public long getSize()
AMQDataBlock
getSize
in class AMQDataBlock
public void writePayload(DataOutput buffer) throws IOException
AMQDataBlock
writePayload
in class AMQDataBlock
buffer
- the buffer to write toIOException
- if there is a problem writing the outputpublic long writePayload(ByteBufferSender sender) throws IOException
writePayload
in class AMQDataBlock
IOException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.