Package com.rabbitmq.client.impl
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
Base class for AMQP method objects, specialized by autogenerated
code in AMQP.java.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Public API - debugging utilityabstract boolean
Tell if content is present.abstract int
Retrieve the protocol class IDabstract int
Retrieve the protocol method IDabstract String
Retrieve the method nametoFrame
(int channelNumber) toString()
abstract Object
visit
(AMQImpl.MethodVisitor visitor) Visitor support (double-dispatch mechanism).abstract void
writeArgumentsTo
(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:
protocolClassId
in interfaceMethod
- Returns:
- the AMQP protocol class ID of this Method
-
protocolMethodId
public abstract int protocolMethodId()Retrieve the protocol method ID- Specified by:
protocolMethodId
in interfaceMethod
- Returns:
- the AMQP protocol method ID of this Method
-
protocolMethodName
Retrieve the method name- Specified by:
protocolMethodName
in 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
-