public interface

Command

com.rabbitmq.client.Command
Known Indirect Subclasses

Class Overview

Interface to a container for an AMQP method-and-arguments, with optional content header and body.

Summary

Public Methods
abstract byte[] getContentBody()
Retrieves the body byte array that travelled as part of this Command, if any.
abstract ContentHeader getContentHeader()
Retrieves the ContentHeader subclass instance held as part of this Command, if any.
abstract Method getMethod()
Retrieves the Method held within this Command.

Public Methods

public abstract byte[] getContentBody ()

Retrieves the body byte array that travelled as part of this Command, if any.

Returns
  • the Command's content body, or null if none

public abstract ContentHeader getContentHeader ()

Retrieves the ContentHeader subclass instance held as part of this Command, if any. Downcast to one of the inner classes of AMQP, for instance AMQP.BasicProperties, as appropriate.

Returns

public abstract Method getMethod ()

Retrieves the Method held within this Command. Downcast to concrete (implementation-specific!) subclasses as necessary.

Returns
  • the command's method.