public abstract class

Method

extends Object
implements Method
java.lang.Object
   ↳ com.rabbitmq.client.impl.Method

Class Overview

Base class for AMQP method objects, specialized by autogenerated code in AMQP.java.

Summary

Public Constructors
Method()
Public Methods
void appendArgumentDebugStringTo(StringBuilder buffer)
Public API - debugging utility
abstract boolean hasContent()
Tell if content is present.
abstract int protocolClassId()
Retrieve the protocol class ID
abstract int protocolMethodId()
Retrieve the protocol method ID
abstract String protocolMethodName()
Retrieve the method name
Frame toFrame(int channelNumber)
String toString()
abstract Object visit(MethodVisitor visitor)
Visitor support (double-dispatch mechanism).
abstract void writeArgumentsTo(MethodArgumentWriter writer)
Private API - Autogenerated writer for this method.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.rabbitmq.client.Method

Public Constructors

public Method ()

Public Methods

public void appendArgumentDebugStringTo (StringBuilder buffer)

Public API - debugging utility

Parameters
buffer the buffer to append debug data to

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.

public abstract int protocolClassId ()

Retrieve the protocol class ID

Returns
  • the AMQP protocol class ID of this Method

public abstract int protocolMethodId ()

Retrieve the protocol method ID

Returns
  • the AMQP protocol method ID of this Method

public abstract String protocolMethodName ()

Retrieve the method name

Returns
  • the AMQP protocol method name of this Method

public Frame toFrame (int channelNumber)

Throws
IOException

public String toString ()

public abstract Object visit (MethodVisitor visitor)

Visitor support (double-dispatch mechanism).

Parameters
visitor the visitor object
Returns
  • the result of the "visit" operation
Throws
IOException if an error is encountered

public abstract void writeArgumentsTo (MethodArgumentWriter writer)

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