summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2016-01-06 09:45:55 +0300
committerMichael Klishin <michael@clojurewerkz.org>2016-01-06 09:45:55 +0300
commitdbca59b9a8460ad35a05482404e6c5675a7cc4fc (patch)
tree6d7f59e6045b6dd0e110e08b2bf4d35709b7791a
parent9eb26faadc07c9e99d191750cfd0c3dfd89ba7a3 (diff)
parent74f312a88ea78f4be022c030226c02b46c251b95 (diff)
downloadrabbitmq-server-git-dbca59b9a8460ad35a05482404e6c5675a7cc4fc.tar.gz
Merge branch 'stable'
-rw-r--r--src/rabbit_policies.erl4
-rw-r--r--src/rabbit_policy.erl16
2 files changed, 19 insertions, 1 deletions
diff --git a/src/rabbit_policies.erl b/src/rabbit_policies.erl
index 3c74448809..efe764fd46 100644
--- a/src/rabbit_policies.erl
+++ b/src/rabbit_policies.erl
@@ -15,7 +15,9 @@
%%
-module(rabbit_policies).
--behaviour(rabbit_policy_validator).
+
+%% Provides built-in policy parameter
+%% validation functions.
-include("rabbit.hrl").
diff --git a/src/rabbit_policy.erl b/src/rabbit_policy.erl
index 6321758f58..1f7e521dfd 100644
--- a/src/rabbit_policy.erl
+++ b/src/rabbit_policy.erl
@@ -16,6 +16,22 @@
-module(rabbit_policy).
+%% Policies is a way to apply optional arguments ("x-args")
+%% to exchanges and queues in bulk, using name matching.
+%%
+%% Only one policy can apply to a given queue or exchange
+%% at a time. Priorities help determine what policy should
+%% take precedence.
+%%
+%% Policies build on runtime parameters. Policy-driven parameters
+%% are well known and therefore validated.
+%%
+%% See also:
+%%
+%% * rabbit_runtime_parameters
+%% * rabbit_policies
+%% * rabbit_registry
+
%% TODO specs
-behaviour(rabbit_runtime_parameter).