summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-03-07 14:32:43 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2011-03-07 14:32:43 +0000
commitb88c81901a341111163cee50078145df2d31124a (patch)
tree2a71008d359987c7f12971349e640fa4ac542a56
parenta11606ea43e7efbefbed0f16661424fb85b29d48 (diff)
downloadrabbitmq-server-git-b88c81901a341111163cee50078145df2d31124a.tar.gz
document bq init params
-rw-r--r--src/rabbit_backing_queue.erl12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/rabbit_backing_queue.erl b/src/rabbit_backing_queue.erl
index b06f1e9cf8..dfee2ee37e 100644
--- a/src/rabbit_backing_queue.erl
+++ b/src/rabbit_backing_queue.erl
@@ -33,6 +33,18 @@ behaviour_info(callbacks) ->
{stop, 0},
%% Initialise the backing queue and its state.
+ %%
+ %% Takes
+ %% 1. the queue name
+ %% 2. a boolean indicating whether the queue is durable
+ %% 3. a boolean indicating whether the queue is an existing queue
+ %% that should be recovered
+ %% 4. an asynchronous callback which can be invoked by the
+ %% backing queue when an event has occured that requires a
+ %% state transition. The callback accepts a function from
+ %% state to state.
+ %% 5. a synchronous callback. Same as the asynchronous callback
+ %% but waits for completion and returns 'error' on error.
{init, 5},
%% Called on queue shutdown when queue isn't being deleted.