summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Mazzoli <francesco@rabbitmq.com>2012-04-19 18:55:34 +0100
committerFrancesco Mazzoli <francesco@rabbitmq.com>2012-04-19 18:55:34 +0100
commit24c18e4d3621efe7f2f348c0572def0509362729 (patch)
tree65bb8fcd26a45ab2428b2100fc7a0d62d80fff08
parent9172b8e31f8f6d7c03508cc8849d4a13671bf937 (diff)
downloadrabbitmq-server-git-24c18e4d3621efe7f2f348c0572def0509362729.tar.gz
Update comment for bq:dropwhile spec
-rw-r--r--src/rabbit_backing_queue.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rabbit_backing_queue.erl b/src/rabbit_backing_queue.erl
index f069575f9b..150c25513f 100644
--- a/src/rabbit_backing_queue.erl
+++ b/src/rabbit_backing_queue.erl
@@ -118,9 +118,10 @@
%% be ignored.
-callback drain_confirmed(state()) -> {[rabbit_guid:guid()], state()}.
-%% Drop messages from the head of the queue while the supplied
-%% predicate returns true. A callback function is supplied allowing
-%% callers access to messages that are about to be dropped.
+%% Drop messages from the head of the queue while the supplied predicate returns
+%% true. Also accepts a boolean parameter that determines whether the messages
+%% are to be acked or not. If they are, the messages and the acktags are
+%% returned.
-callback dropwhile(msg_pred(), true, state())
-> {[{rabbit_types:basic_message(), ack()}], state()};
(msg_pred(), false, state())