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
public abstract class Method extends Object implements Method
Base class for AMQP method objects, specialized by autogenerated code in AMQP.java.
-
-
Constructor Summary
Constructors Constructor Description Method()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
appendArgumentDebugStringTo(StringBuilder buffer)
Public API - debugging utilityabstract boolean
hasContent()
Tell if content is present.abstract int
protocolClassId()
Retrieve the protocol class IDabstract int
protocolMethodId()
Retrieve the protocol method IDabstract String
protocolMethodName()
Retrieve the method nameFrame
toFrame(int channelNumber)
String
toString()
abstract Object
visit(AMQImpl.MethodVisitor visitor)
Visitor support (double-dispatch mechanism).abstract void
writeArgumentsTo(MethodArgumentWriter writer)
Private API - Autogenerated writer for this method.
-
-
-
Method Detail
-
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
public abstract String 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
public abstract Object visit(AMQImpl.MethodVisitor visitor) throws IOException
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
public abstract void writeArgumentsTo(MethodArgumentWriter writer) throws IOException
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 void appendArgumentDebugStringTo(StringBuilder buffer)
Public API - debugging utility- Parameters:
buffer
- the buffer to append debug data to
-
toFrame
public Frame toFrame(int channelNumber) throws IOException
- Throws:
IOException
-
-