Class Method
java.lang.Object
com.rabbitmq.client.impl.Method
- All Implemented Interfaces:
Method
- Direct Known Subclasses:
AMQImpl.Access.Request, AMQImpl.Access.RequestOk, AMQImpl.Basic.Ack, AMQImpl.Basic.Cancel, AMQImpl.Basic.CancelOk, AMQImpl.Basic.Consume, AMQImpl.Basic.ConsumeOk, AMQImpl.Basic.Deliver, AMQImpl.Basic.Get, AMQImpl.Basic.GetEmpty, AMQImpl.Basic.GetOk, AMQImpl.Basic.Nack, AMQImpl.Basic.Publish, AMQImpl.Basic.Qos, AMQImpl.Basic.QosOk, AMQImpl.Basic.Recover, AMQImpl.Basic.RecoverAsync, AMQImpl.Basic.RecoverOk, AMQImpl.Basic.Reject, AMQImpl.Basic.Return, AMQImpl.Channel.Close, AMQImpl.Channel.CloseOk, AMQImpl.Channel.Flow, AMQImpl.Channel.FlowOk, AMQImpl.Channel.Open, AMQImpl.Channel.OpenOk, AMQImpl.Confirm.Select, AMQImpl.Confirm.SelectOk, AMQImpl.Connection.Blocked, AMQImpl.Connection.Close, AMQImpl.Connection.CloseOk, AMQImpl.Connection.Open, AMQImpl.Connection.OpenOk, AMQImpl.Connection.Secure, AMQImpl.Connection.SecureOk, AMQImpl.Connection.Start, AMQImpl.Connection.StartOk, AMQImpl.Connection.Tune, AMQImpl.Connection.TuneOk, AMQImpl.Connection.Unblocked, AMQImpl.Connection.UpdateSecret, AMQImpl.Connection.UpdateSecretOk, AMQImpl.Exchange.Bind, AMQImpl.Exchange.BindOk, AMQImpl.Exchange.Declare, AMQImpl.Exchange.DeclareOk, AMQImpl.Exchange.Delete, AMQImpl.Exchange.DeleteOk, AMQImpl.Exchange.Unbind, AMQImpl.Exchange.UnbindOk, AMQImpl.Queue.Bind, AMQImpl.Queue.BindOk, AMQImpl.Queue.Declare, AMQImpl.Queue.DeclareOk, AMQImpl.Queue.Delete, AMQImpl.Queue.DeleteOk, AMQImpl.Queue.Purge, AMQImpl.Queue.PurgeOk, AMQImpl.Queue.Unbind, AMQImpl.Queue.UnbindOk, AMQImpl.Tx.Commit, AMQImpl.Tx.CommitOk, AMQImpl.Tx.Rollback, AMQImpl.Tx.RollbackOk, AMQImpl.Tx.Select, AMQImpl.Tx.SelectOk, UpdateSecretExtension.UpdateSecret
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPublic API - debugging utilityabstract booleanTell if content is present.abstract intRetrieve the protocol class IDabstract intRetrieve the protocol method IDabstract StringRetrieve the method nametoFrame(int channelNumber) toString()abstract Objectvisit(AMQImpl.MethodVisitor visitor) Visitor support (double-dispatch mechanism).abstract voidwriteArgumentsTo(MethodArgumentWriter writer) Private API - Autogenerated writer for this method.
-
Constructor Details
-
Method
public Method()
-
-
Method Details
-
protocolClassId
public abstract int protocolClassId()Retrieve the protocol class ID- Specified by:
protocolClassIdin interfaceMethod- Returns:
- the AMQP protocol class ID of this Method
-
protocolMethodId
public abstract int protocolMethodId()Retrieve the protocol method ID- Specified by:
protocolMethodIdin interfaceMethod- Returns:
- the AMQP protocol method ID of this Method
-
protocolMethodName
Retrieve the method name- Specified by:
protocolMethodNamein interfaceMethod- Returns:
- the AMQP protocol method name of this Method
-
hasContent
public abstract boolean hasContent()Tell if content is present.- Returns:
- true if the wire-protocol for this method should involve a content header and body, or false if it should just involve a single method frame.
-
visit
Visitor support (double-dispatch mechanism).- Parameters:
visitor- the visitor object- Returns:
- the result of the "visit" operation
- Throws:
IOException- if an error is encountered
-
writeArgumentsTo
Private API - Autogenerated writer for this method.- Parameters:
writer- interface to an object to write the method arguments- Throws:
IOException- if an error is encountered
-
appendArgumentDebugStringTo
Public API - debugging utility- Parameters:
buffer- the buffer to append debug data to
-
toString
-
toFrame
- Throws:
IOException
-