vendor/bundle/ruby/1.8/gems/amqp-0.6.7/lib/mq/exchange.rb
def delete opts = {}
      @mq.callback{
        @mq.send Protocol::Exchange::Delete.new({ :exchange => name,
                                                  :nowait => true }.merge(opts))
        @mq.exchanges.delete name
      }
      nil
    end
# This method deletes an exchange.  When an exchange is deleted all queue
# bindings on the exchange are cancelled.
#
# Further attempts to publish messages to a deleted exchange will raise
# an MQ::Error due to a channel close exception.
#
#  exchange = MQ.direct('name', :key => 'foo.bar')
#  exchange.delete
#
# == Options
# * :nowait => true | false (default true)
# If set, the server will not respond to the method. The client should
# not wait for a reply method.  If the server could not complete the
# method it will raise a channel or connection exception.
#
#  exchange.delete(:nowait => false)
#
# * :if_unused => true | false (default false)
# If set, the server will only delete the exchange if it has no queue
# bindings. If the exchange has queue bindings the server does not
# delete it but raises a channel exception instead (MQ:Error).
#    
This method deletes an exchange.  When an exchange is deleted all queue
bindings on the exchange are cancelled.

Further attempts to publish messages to a deleted exchange will raise
an MQ::Error due to a channel close exception.



Options
:nowait => true | false (default true)
If set, the server will not respond to the method. The client should
not wait for a reply method.  If the server could not complete the
method it will raise a channel or connection exception.



:if_unused => true | false (default false)
If set, the server will only delete the exchange if it has no queue
bindings. If the exchange has queue bindings the server does not
delete it but raises a channel exception instead (MQ:Error).
This method deletes an exchange . When an exchange is deleted all queue bindings on the exchange are cancelled . Further attempts to publish messages to a deleted exchange will raise an MQ :: Error due to a channel close exception . Options : nowait = > true | false ( default true ) If set the server will not respond to the method . The client should not wait for a reply method . If the server could not complete the method it will raise a channel or connection exception . : if_unused = > true | false ( default false ) If set the server will only delete the exchange if it has no queue bindings . If the exchange has queue bindings the server does not delete it but raises a channel exception instead ( MQ : Error ) .
def delete opts = {}
      @mq.callback{
        @mq.send Protocol::Exchange::Delete.new({ :exchange => name,
                                                  :nowait => true }.merge(opts))
        @mq.exchanges.delete name
      }
      nil
    end
def delete opts = { } @mq . callback { @mq . send Protocol :: Exchange :: Delete . new ( { :exchange => name , :nowait => true } . merge ( opts ) ) @mq . exchanges . delete name } nil end
This method deletes an exchange.
This method deletes an exchange .
opts