public interface Message
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(byte[] src)
This will abstract the underlying message data.
|
void |
appendData(ByteBuffer src)
This will abstract the underlying message data.
|
void |
clearData()
This should clear the body of the message.
|
DeliveryProperties |
getDeliveryProperties() |
Header |
getHeader() |
MessageProperties |
getMessageProperties() |
int |
getMessageTransferId()
The provides access to the command Id assigned to the
message transfer.
|
ByteBuffer |
readData()
* This will abstract the underlying message data.
|
void |
readData(byte[] target)
This will abstract the underlying message data.
|
void |
setHeader(Header header) |
Header getHeader()
void setHeader(Header header)
MessageProperties getMessageProperties()
DeliveryProperties getDeliveryProperties()
void appendData(byte[] src)
throws IOException
src - - the data to appendIOException - if there is an issue appending the datavoid appendData(ByteBuffer src) throws IOException
src - - the data to appendIOException - if there is an issue appending the datavoid readData(byte[] target)
throws IOException
target - The target byte[] which the data gets copied toIOException - if there is an issue reading the dataByteBuffer readData() throws IOException
IOException - if there is an issue reading the datavoid clearData()
int getMessageTransferId()
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.