Commit Graph

65 Commits

Author SHA1 Message Date
Alvaro Videla b506dad8c0 fixes connection leaking on tests 2015-09-16 14:38:26 +03:00
Gavin M. Roy a9bcb539b4 Add routing on message properties
Summary:

Add a new hash-property argument setting that allows for message hasing based upon the correlation_id or message_id.

Changes:

- Validate the exchange upon creation to ensure that hash-header and hash-property are not both set at the same time. Additionally validate the value of hash-property when set is one of correlation_id or message_id
- Change the signature of hash/2 for header to match on {header, Header} instead of {longstr, Header}
- Add a new hash/2 implementation that matches on {property, Value} for returning the hashable string from the message properties
- Implement a new hash_on/1 method for selecting the data the message will be routed on
- Implement a new hash_args/1 method for returning the configuration for both hash-header and hash-property
- Add test coverage for message property based routing

This addresses the proposal I outlined in #7
2015-09-02 12:33:32 -04:00
Michael Klishin 8728d6b476 Clean up declared queues 2015-09-02 11:23:25 +03:00
Michael Klishin fb8dba5018 Cosmetics 2015-09-02 11:21:27 +03:00
Gavin M. Roy c023431dec Validate routing key when binding
- Address #6 by validating that the routing key is both numeric and non-negative.
- Add unit tests to cover both cases.
2015-09-01 12:03:33 -04:00
Simon MacMullen e89376c58c Update copyright for 2014 2014-03-17 17:25:20 +00:00
Simon MacMullen d56ade9bf3 s/VMware/GoPivotal/g 2013-07-01 10:49:11 +01:00
Emile Joubert 5d2f230fdf Merge heads 2013-02-12 11:18:27 +00:00
Emile Joubert 38b8f1967b Update copyright 2013 2013-01-23 11:29:20 +00:00
Simon MacMullen 30801fb358 A test would be nice. 2013-01-18 14:22:00 +00:00
Simon MacMullen 57c59f05b3 Remove unused variables 2013-01-09 14:21:20 +00:00
Simon MacMullen 0c27693353 Derp, use arguments rather than environment. And add a touch of documentation. 2013-01-09 11:10:05 +00:00
Simon MacMullen 71ad929bcf I realise now this should be keyed off exchange arguments, but I want to go home and I hate leaving things uncommitted. 2013-01-08 18:34:55 +00:00
Emile Joubert 996e96c6c1 Update copyright 2012 2012-02-02 12:53:17 +00:00
Matthew Sackman 2350b5c611 Add test, of a rather basic nature. I would much rather use confirms, not txn, but confirms are broken in the erlang client (see bug 24499), so I have no choice. 2011-10-18 16:39:24 +01:00