Class: Qpid::Management::Queue
- Inherits:
-
BrokerObject
- Object
- BrokerObject
- Qpid::Management::Queue
- Defined in:
- lib/qpid_management/queue.rb
Overview
Representation of a queue. Properties include:
-
acquires
-
arguments
-
autoDelete
-
bindingCount
-
bindingCountHigh
-
bindingCountLow
-
byteDepth
-
byteFtdDepth
-
byteFtdDequeues
-
byteFtdEnqueues
-
bytePersistDequeues
-
bytePersistEnqueues
-
byteTotalDequeues
-
byteTotalEnqueues
-
byteTxnDequeues
-
byteTxnEnqueues
-
consumerCount
-
consumerCountHigh
-
consumerCountLow
-
discardsLvq
-
discardsOverflow
-
discardsPurge
-
discardsRing
-
discardsSubscriber
-
discardsTtl
-
durable
-
exclusive
-
flowStopped
-
flowStoppedCount
-
messageLatencyAvg
-
messageLatencyCount
-
messageLatencyMax
-
messageLatencyMin
-
msgDepth
-
msgFtdDepth
-
msgFtdDequeues
-
msgFtdEnqueues
-
msgPersistDequeues
-
msgPersistEnqueues
-
msgTotalDequeues
-
msgTotalEnqueues
-
msgTxnDequeues
-
msgTxnEnqueues
-
name
-
releases
-
reroutes
-
unackedMessages
-
unackedMessagesHigh
-
unackedMessagesLow
-
vhostRef
Instance Attribute Summary
Attributes inherited from BrokerObject
Instance Method Summary collapse
-
#purge(message_count, filter = {}) ⇒ Object
Purges (removes) messages from this queue.
-
#reroute(message_count, use_alternate_exchange, exchange, filter) ⇒ Object
Reroutes messages from this queue to an exchange, either the queue’s alternate exchange, or the specified exchange.
Methods inherited from BrokerObject
#[], #created_at, #deleted_at, #id, #initialize, #invoke_method, #method_missing, qmf_class, #refresh!, #short_id, #to_s, #updated_at
Constructor Details
This class inherits a constructor from Qpid::Management::BrokerObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Qpid::Management::BrokerObject
Instance Method Details
#purge(message_count, filter = {}) ⇒ Object
Purges (removes) messages from this queue
77 78 79 |
# File 'lib/qpid_management/queue.rb', line 77 def purge(, filter={}) invoke_method('purge', {'request' => , 'filter' => filter}, "org.apache.qpid.broker:queue:#{name}") end |
#reroute(message_count, use_alternate_exchange, exchange, filter) ⇒ Object
Reroutes messages from this queue to an exchange, either the queue’s alternate exchange, or the specified exchange
87 88 89 90 91 92 93 94 |
# File 'lib/qpid_management/queue.rb', line 87 def reroute(, use_alternate_exchange, exchange, filter) args = {'request' => , 'useAltExchange' => use_alternate_exchange, 'exchange' => exchange, 'filter' => filter} invoke_method('reroute', args, "org.apache.qpid.broker:queue:#{name}") end |