diff options
| author | Rob Harrop <rob@rabbitmq.com> | 2011-06-13 12:02:58 +0100 |
|---|---|---|
| committer | Rob Harrop <rob@rabbitmq.com> | 2011-06-13 12:02:58 +0100 |
| commit | 873a94544bf5d44b6ff73759833f231a8c19dc16 (patch) | |
| tree | 39f529e8ef42f5abfa71e87f0755514a931772d4 /src/rabbit_backing_queue.erl | |
| parent | fc42a27b713d8e442e636c62e8780e7b64241767 (diff) | |
| download | rabbitmq-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.erl | 8 |
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. |
