summaryrefslogtreecommitdiff
path: root/src/rabbit_backing_queue.erl
diff options
context:
space:
mode:
authorRob Harrop <rob@rabbitmq.com>2011-06-13 12:02:58 +0100
committerRob Harrop <rob@rabbitmq.com>2011-06-13 12:02:58 +0100
commit873a94544bf5d44b6ff73759833f231a8c19dc16 (patch)
tree39f529e8ef42f5abfa71e87f0755514a931772d4 /src/rabbit_backing_queue.erl
parentfc42a27b713d8e442e636c62e8780e7b64241767 (diff)
downloadrabbitmq-server-873a94544bf5d44b6ff73759833f231a8c19dc16.tar.gz
Updated specs and fixed error in ack that didn't account for different ack storage formats
Diffstat (limited to 'src/rabbit_backing_queue.erl')
-rw-r--r--src/rabbit_backing_queue.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rabbit_backing_queue.erl b/src/rabbit_backing_queue.erl
index 3d7fb489..dd5f5b04 100644
--- a/src/rabbit_backing_queue.erl
+++ b/src/rabbit_backing_queue.erl
@@ -97,14 +97,18 @@ behaviour_info(callbacks) ->
{drain_confirmed, 1},
%% Drop messages from the head of the queue while the supplied
- %% predicate returns true.
+ %% predicate returns true. A callback function is supplied
+ %% allowing callers access to messages that are about to be
+ %% dropped.
{dropwhile, 3},
%% Produce the next message.
{fetch, 2},
%% Acktags supplied are for messages which can now be forgotten
- %% about. Must return 1 msg_id per Ack, in the same order as Acks.
+ %% about. Must return 1 msg_id per Ack, in the same order as
+ %% Acks. A callback function is supplied allowing callers to
+ %% access messages that are being acked.
{ack, 3},
%% A publish, but in the context of a transaction.