summaryrefslogtreecommitdiff
path: root/src/rabbit_exchange_decorator.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-05-17 17:52:01 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-05-17 17:52:01 +0100
commiteb992a73cdc7d9010b9485a4354dc0c9ce9da492 (patch)
tree2839bdceb742a39e00705a6346f1a3aa0ba4cd69 /src/rabbit_exchange_decorator.erl
parent511bb28cb89f90d3d5cd5ec32a13525664c05bf3 (diff)
downloadrabbitmq-server-eb992a73cdc7d9010b9485a4354dc0c9ce9da492.tar.gz
First sketch of a policy mechanism.
Diffstat (limited to 'src/rabbit_exchange_decorator.erl')
-rw-r--r--src/rabbit_exchange_decorator.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rabbit_exchange_decorator.erl b/src/rabbit_exchange_decorator.erl
index 4fa87485..9f30688d 100644
--- a/src/rabbit_exchange_decorator.erl
+++ b/src/rabbit_exchange_decorator.erl
@@ -18,6 +18,8 @@
-export([behaviour_info/1]).
+%% TODO make this into a modern typed callback
+
behaviour_info(callbacks) ->
[
{description, 0},
@@ -40,7 +42,10 @@ behaviour_info(callbacks) ->
{add_binding, 3},
%% called after bindings have been deleted.
- {remove_bindings, 3}
+ {remove_bindings, 3},
+
+ %% called when the policy attached to this exchange changes.
+ {policy_changed, 3}
];
behaviour_info(_Other) ->
undefined.