Class Qrack::Client
In: lib/qrack/client.rb
Parent: Object

Client ancestor class

Methods

Constants

CONNECT_TIMEOUT = 5.0
RETRY_DELAY = 10.0

Attributes

channel  [RW] 
channels  [RW] 
connecting  [RW] 
exchanges  [RW] 
heartbeat  [R] 
host  [R] 
logfile  [RW] 
logging  [R] 
message_in  [RW] 
message_out  [RW] 
port  [R] 
queues  [RW] 
spec  [R] 
status  [R] 
vhost  [R] 

Public Class methods

Public Instance methods

DESCRIPTION:

Closes all active communication channels and connection. If an error occurs a Bunny::ProtocolError is raised. If successful, Client.status is set to :not_connected.

RETURNS:

:not_connected if successful.

next_method(options = {})

Alias for next_payload

DESCRIPTION:

Checks to see whether or not an undeliverable message has been returned as a result of a publish with the :immediate or :mandatory options.

OPTIONS:

  • <tt>:timeout => number of seconds (default = 0.1) - The method will wait for a return message until this timeout interval is reached.

RETURNS:

{:header => nil, :payload => :no_return, :return_details => nil} if message is not returned before timeout. {:header, :return_details, :payload} if message is returned. :return_details is a hash {:reply_code, :reply_text, :exchange, :routing_key}.

stop()

Alias for close

[Validate]