summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-10-20 17:01:50 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-10-20 17:01:50 +0100
commit106c5a0c6f0161a13d3601cb38a08f58c68d94fa (patch)
treeb3ca7bb160b878065df7ae8b5a6c81698dfc7d23 /include
parentdaa4f4fb8520c2bc5c49cb26cf6bc1b95901aebf (diff)
parent844aa5ee0fe2ae43fb5cc6590a0936c99f97488f (diff)
downloadrabbitmq-server-106c5a0c6f0161a13d3601cb38a08f58c68d94fa.tar.gz
Crude merge-from-default to help examine this thing. Currently some tests fail due to q_p blowing up with failed assertions, I don't know if it was like that before.
Diffstat (limited to 'include')
-rw-r--r--include/rabbit_backing_queue_spec.hrl15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl
index 20fe4234..b58077d8 100644
--- a/include/rabbit_backing_queue_spec.hrl
+++ b/include/rabbit_backing_queue_spec.hrl
@@ -28,6 +28,13 @@
-type(async_callback() :: fun ((atom(), fun ((atom(), state()) -> state())) -> 'ok')).
-type(duration() :: ('undefined' | 'infinity' | number())).
+-type(msg_lookup_result() :: {rabbit_types:basic_message(), state()}).
+
+-type(msg_lookup_fun() :: fun((state()) -> msg_lookup_result())).
+
+-type(msg_lookup_callback() ::
+ fun((msg_lookup_fun(), state()) -> state())).
+
-spec(start/1 :: ([rabbit_amqqueue:name()]) -> 'ok').
-spec(stop/0 :: () -> 'ok').
-spec(init/3 :: (rabbit_types:amqqueue(), attempt_recovery(),
@@ -45,12 +52,14 @@
rabbit_types:message_properties(), pid(), state())
-> {undefined, state()}).
-spec(drain_confirmed/1 :: (state()) -> {[rabbit_guid:guid()], state()}).
--spec(dropwhile/2 ::
- (fun ((rabbit_types:message_properties()) -> boolean()), state())
+-spec(dropwhile/3 ::
+ (fun ((rabbit_types:message_properties()) -> boolean()),
+ msg_lookup_callback(), state())
-> state()).
-spec(fetch/2 :: (true, state()) -> {fetch_result(ack()), state()};
(false, state()) -> {fetch_result(undefined), state()}).
--spec(ack/2 :: ([ack()], state()) -> {[rabbit_guid:guid()], state()}).
+-spec(ack/3 :: ([ack()], msg_lookup_callback(), state()) ->
+ {[rabbit_guid:guid()], state()}).
-spec(requeue/3 :: ([ack()], message_properties_transformer(), state())
-> {[rabbit_guid:guid()], state()}).
-spec(len/1 :: (state()) -> non_neg_integer()).