diff options
| author | Ben Hood <0x6e6562@gmail.com> | 2008-07-31 00:44:02 +0100 |
|---|---|---|
| committer | Ben Hood <0x6e6562@gmail.com> | 2008-07-31 00:44:02 +0100 |
| commit | 0a1d35c5306efbf4e27b298f1a6299b94a8be207 (patch) | |
| tree | 2bcc82a35873f13e9be2168667e3585dc304965d /include | |
| parent | fbab5e9e4950211cbe30365a303687b2935a3eb6 (diff) | |
| download | rabbitmq-server-git-0a1d35c5306efbf4e27b298f1a6299b94a8be207.tar.gz | |
Savepoint for changing the routing structure
Diffstat (limited to 'include')
| -rw-r--r-- | include/rabbit.hrl | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index f153e7c405..d0fc87e094 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -41,11 +41,14 @@ -record(exchange, {name, type, durable, auto_delete, arguments}). --record(amqqueue, {name, durable, auto_delete, arguments, binding_specs, pid}). --record(binding_spec, {exchange_name, routing_key, arguments}). +-record(amqqueue, {name, durable, auto_delete, arguments, pid}). +%% This constant field seems to be required because the underlying storage is +%% ets, which stores key value pairs --record(binding, {key, handlers}). --record(handler, {binding_spec, queue, qpid}). +%% The spec field is made up of an {Exchange, Binding, Queue} +-record(forwards_binding, {spec, value = const}). +%% The spec field is made up of an {Queue, Binding, Exchange} +-record(reverse_binding, {spec, value = const}). -record(listener, {node, protocol, host, port}). @@ -76,16 +79,11 @@ #user{username :: username(), password :: password()}). -type(permission() :: 'passive' | 'active' | 'write' | 'read'). --type(binding_spec() :: - #binding_spec{exchange_name :: exchange_name(), - routing_key :: routing_key(), - arguments :: amqp_table()}). -type(amqqueue() :: #amqqueue{name :: queue_name(), durable :: bool(), auto_delete :: bool(), arguments :: amqp_table(), - binding_specs :: [binding_spec()], pid :: maybe(pid())}). -type(exchange() :: #exchange{name :: exchange_name(), |
