summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Harrop <rharrop@vmware.com>2010-09-27 17:04:29 +0100
committerRob Harrop <rharrop@vmware.com>2010-09-27 17:04:29 +0100
commit611039e1d4391843e11736cb30f5c313f3c34599 (patch)
tree8723fd93eb4a578f68b88403dbd5da95aa14e328 /include
parent3141b0e9b6edaebf69e02ceacdfec5e45494f23f (diff)
downloadrabbitmq-server-611039e1d4391843e11736cb30f5c313f3c34599.tar.gz
added peek to ivq. some tests for peek
Diffstat (limited to 'include')
-rw-r--r--include/rabbit_backing_queue_spec.hrl5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl
index 3e78d571..6067ac62 100644
--- a/include/rabbit_backing_queue_spec.hrl
+++ b/include/rabbit_backing_queue_spec.hrl
@@ -34,6 +34,8 @@
('empty'|{rabbit_types:basic_message(),
boolean(), ack(),
non_neg_integer()})).
+-type(peek_result() :: ('empty'|{rabbit_types:basic_message(),
+ rabbit_types:msg_properties()})).
-type(is_durable() :: boolean()).
-type(attempt_recovery() :: boolean()).
-type(purged_msg_count() :: non_neg_integer()).
@@ -55,7 +57,8 @@
rabbit_types:msg_properties(), state()) -> {ack(), state()}).
-spec(dropwhile/2 ::
(fun ((rabbit_types:basic_message(), rabbit_types:msg_properties())
- -> boolean()), state()) -> state()).
+ -> boolean()), state()) -> state()).
+-spec(peek/1 :: (state()) -> {peek_result(), state()}).
-spec(fetch/2 :: (ack_required(), state()) -> {fetch_result(), state()}).
-spec(ack/2 :: ([ack()], state()) -> state()).
-spec(tx_publish/4 ::