Net::AMQP::Frame(3pm)

NAME
Net::AMQP::Frame - AMQP wire-level Frame object

CLASS METHODS

  new
Takes an arbitrary list of key/value pairs and casts it into this class. Nothing special here.

  factory
  Net::AMQP::Frame->factory(
    type_id => 1,
    channel => 1,
    payload => '',
  );

Will attempt to identify a Net::AMQP::Frame subclass for further parsing, and will croak on failure. Returns a Net::AMQP::Frame subclass object.

OBJECT METHODS

  Field accessors
Each subclass extends these accessors, but they share in common the following:

type_id
channel
size
payload

  parse_payload
Performs the parsing of the 'payload' binary data.

  to_raw_payload
Returns the binary data the represents this frame's payload.

  to_raw_frame
Returns a raw binary string representing this frame on the wire.

  type_string
Returns a string that uniquely represents this frame type, such as 'Method Basic.Consume', 'Header Basic' or 'Body'

SEE ALSO
Net::AMQP

COPYRIGHT
Copyright (c) 2009 Eric Waters and XMission LLC (http://www.xmission.com/). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

AUTHOR
Eric Waters <ewaters@gmail.com>