public interface AMQMethodBody extends AMQBody
| Modifier and Type | Field and Description |
|---|---|
static byte |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(MethodDispatcher methodDispatcher,
int channelId) |
AMQFrame |
generateFrame(int channelId) |
AMQChannelException |
getChannelException(AMQConstant code,
String message) |
AMQChannelException |
getChannelException(AMQConstant code,
String message,
Throwable cause) |
AMQChannelException |
getChannelNotFoundException(int channelId)
Convenience Method to create a channel not found exception
|
int |
getClazz() |
AMQConnectionException |
getConnectionException(AMQConstant code,
String message) |
AMQConnectionException |
getConnectionException(AMQConstant code,
String message,
Throwable cause) |
byte |
getMajor()
AMQP major version
|
int |
getMethod() |
byte |
getMinor()
AMQP minor version
|
int |
getSize()
Get the size of the body
|
String |
toString() |
void |
writeMethodPayload(DataOutput buffer) |
void |
writePayload(DataOutput buffer) |
getFrameType, handlestatic final byte TYPE
byte getMajor()
byte getMinor()
int getClazz()
int getMethod()
void writeMethodPayload(DataOutput buffer) throws IOException
IOExceptionint getSize()
AMQBodyvoid writePayload(DataOutput buffer) throws IOException
writePayload in interface AMQBodyIOExceptionAMQFrame generateFrame(int channelId)
AMQChannelException getChannelNotFoundException(int channelId)
channelId - The channel id that is not foundAMQChannelException getChannelException(AMQConstant code, String message)
AMQChannelException getChannelException(AMQConstant code, String message, Throwable cause)
AMQConnectionException getConnectionException(AMQConstant code, String message)
AMQConnectionException getConnectionException(AMQConstant code, String message, Throwable cause)
boolean execute(MethodDispatcher methodDispatcher, int channelId) throws AMQException
AMQExceptionCopyright © 2006–2014 The Apache Software Foundation. All rights reserved.