org.objectweb.joram.mom.amqp.marshalling
Class AMQP.Channel.Close
java.lang.Object
org.objectweb.joram.mom.amqp.marshalling.AbstractMarshallingMethod
org.objectweb.joram.mom.amqp.marshalling.AMQP.Channel.Close
- All Implemented Interfaces:
- FrameBuilder
- Enclosing class:
- AMQP.Channel
public static class AMQP.Channel.Close
- extends AbstractMarshallingMethod
This method indicates that the sender wants to close the channel. This may be due to internal conditions (e.g. a forced shut-down) or due to an error handling a specific method, i.e. an exception. When a close is due to an exception, the sender provides the class and method id of the method which caused the exception.
Field Summary |
int |
classId
When the close is provoked by a method exception, this is the class of the method. |
static int |
INDEX
|
int |
methodId
When the close is provoked by a method exception, this is the ID of the method. |
int |
replyCode
|
java.lang.String |
replyText
|
Constructor Summary |
AMQP.Channel.Close()
|
AMQP.Channel.Close(int replyCode,
java.lang.String replyText,
int classId,
int methodId)
This method indicates that the sender wants to close the channel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
replyCode
public int replyCode
replyText
public java.lang.String replyText
classId
public int classId
- When the close is provoked by a method exception, this is the class of the method.
methodId
public int methodId
- When the close is provoked by a method exception, this is the ID of the method.
INDEX
public static final int INDEX
- See Also:
- Constant Field Values
AMQP.Channel.Close
public AMQP.Channel.Close(int replyCode,
java.lang.String replyText,
int classId,
int methodId)
- This method indicates that the sender wants to close the channel. This may be due to internal conditions (e.g. a forced shut-down) or due to an error handling a specific method, i.e. an exception. When a close is due to an exception, the sender provides the class and method id of the method which caused the exception.
AMQP.Channel.Close
public AMQP.Channel.Close()
getMethodId
public int getMethodId()
- Specified by:
getMethodId
in class AbstractMarshallingMethod
getMethodName
public java.lang.String getMethodName()
- Specified by:
getMethodName
in class AbstractMarshallingMethod
getClassId
public int getClassId()
- Specified by:
getClassId
in class AbstractMarshallingMethod
getClassName
public java.lang.String getClassName()
- Specified by:
getClassName
in class AbstractMarshallingMethod
readFrom
public void readFrom(AMQPInputStream in)
throws java.io.IOException
- Specified by:
readFrom
in class AbstractMarshallingMethod
- Throws:
java.io.IOException
writeTo
public void writeTo(AMQPOutputStream out)
throws java.io.IOException
- Specified by:
writeTo
in class AbstractMarshallingMethod
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2005 Scalagent - All rights reserved