summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rabbit_backing_queue_spec.hrl10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl
index 918d587a5e..0fc66851ae 100644
--- a/include/rabbit_backing_queue_spec.hrl
+++ b/include/rabbit_backing_queue_spec.hrl
@@ -25,11 +25,7 @@
-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_fun() :: fun((msg_lookup_fun(), state()) -> state())).
+-type(msg_fun() :: fun((rabbit_types:basic_message(), ack()) -> 'ok')).
-spec(start/1 :: ([rabbit_amqqueue:name()]) -> 'ok').
-spec(stop/0 :: () -> 'ok').
@@ -50,11 +46,11 @@
-spec(drain_confirmed/1 :: (state()) -> {[rabbit_guid:guid()], state()}).
-spec(dropwhile/3 ::
(fun ((rabbit_types:message_properties()) -> boolean()),
- msg_fun(), state())
+ msg_fun() | 'undefined', state())
-> state()).
-spec(fetch/2 :: (true, state()) -> {fetch_result(ack()), state()};
(false, state()) -> {fetch_result(undefined), state()}).
--spec(ack/3 :: ([ack()], msg_fun(), state()) ->
+-spec(ack/3 :: ([ack()], msg_fun() | 'undefined', state()) ->
{[rabbit_guid:guid()], state()}).
-spec(requeue/2 :: ([ack()], state())
-> {[rabbit_guid:guid()], state()}).