| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Constructor and Description |
|---|
ContentHeaderBody() |
ContentHeaderBody(BasicContentHeaderProperties props,
int classId) |
ContentHeaderBody(DataInput buffer,
long size) |
ContentHeaderBody(int classId,
int weight,
BasicContentHeaderProperties props,
long bodySize) |
| Modifier and Type | Method and Description |
|---|---|
static AMQFrame |
createAMQFrame(int channelId,
ContentHeaderBody body) |
static AMQFrame |
createAMQFrame(int channelId,
int classId,
int weight,
BasicContentHeaderProperties properties,
long bodySize) |
static ContentHeaderBody |
createFromBuffer(DataInputStream buffer,
long size)
Helper method that is used currently by the persistence layer.
|
long |
getBodySize()
unsigned long but java can't handle that anyway when allocating byte array
|
int |
getClassId() |
byte |
getFrameType() |
BasicContentHeaderProperties |
getProperties() |
int |
getSize()
Get the size of the body
|
int |
getWeight() |
void |
handle(int channelId,
AMQVersionAwareProtocolSession session) |
void |
setBodySize(long bodySize) |
void |
setProperties(BasicContentHeaderProperties props) |
String |
toString() |
void |
writePayload(DataOutput buffer) |
public static final byte TYPE
public ContentHeaderBody()
public ContentHeaderBody(DataInput buffer, long size) throws AMQFrameDecodingException, IOException
AMQFrameDecodingExceptionIOExceptionpublic ContentHeaderBody(BasicContentHeaderProperties props, int classId)
public ContentHeaderBody(int classId,
int weight,
BasicContentHeaderProperties props,
long bodySize)
public byte getFrameType()
getFrameType in interface AMQBodypublic static ContentHeaderBody createFromBuffer(DataInputStream buffer, long size) throws AMQFrameDecodingException, AMQProtocolVersionException, IOException
buffer - buffer to decodesize - size of the bodyAMQFrameDecodingException - if there is a decoding issueAMQProtocolVersionException - if there is a version issueIOException - if there is an IO issuepublic int getSize()
AMQBodypublic void writePayload(DataOutput buffer) throws IOException
writePayload in interface AMQBodyIOExceptionpublic void handle(int channelId,
AMQVersionAwareProtocolSession session)
throws AMQException
handle in interface AMQBodyAMQExceptionpublic static AMQFrame createAMQFrame(int channelId, int classId, int weight, BasicContentHeaderProperties properties, long bodySize)
public static AMQFrame createAMQFrame(int channelId, ContentHeaderBody body)
public BasicContentHeaderProperties getProperties()
public void setProperties(BasicContentHeaderProperties props)
public int getClassId()
public int getWeight()
public long getBodySize()
public void setBodySize(long bodySize)
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.