forked from ruby-amqp/amqp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTODO
30 lines (24 loc) · 1.08 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- breaks with header values that are nil
- breaks with header values that are ruby objects (convert to strings?)
- add peek and pop to queues
- use rabbitmq generated consumer tag from basic.consume-ok reply
- allow temporary queues with amq.queue(nil) syntax (use uuids)
- use as temp queue in rpc
- use uuids for message ids in rpc
- add ack/completed responses for messages
- deleting queues/bindings/exchanges
+ queue.unbind
- queue.remove or queue.close or queue.delete
- exchange.remove
- rpc.remove
- handle errors and exceptions
binding to a non-existent (or not yet created in clock.rb) exchange
#<AMQP::Protocol::Channel::Close:0x11d35d4
@class_id=50,
@debug=1,
@method_id=20,
@reply_code=404,
@reply_text="NOT_FOUND - no exchange 'clock' in vhost '/'">>]
- handle connection.redirect during connect (for rabbitmq in distributed mode) [or just set insist to true]
- add amq.queue('name').size{ |num| "#{num} messages in the queue" } (send declare passive, look at declare-ok response)
- clean up AMQP::Channel.default on disconnect