summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2011-09-22 17:25:41 +0100
committerEmile Joubert <emile@rabbitmq.com>2011-09-22 17:25:41 +0100
commitd19d494db5944c9ba905fd1dcaeebf7e001df52f (patch)
tree3a2a495e128b322a55b2610e32af167567bad994 /include
parentef7fdba68d8ee496b6fade46f1ae81c2ad9ef132 (diff)
parent347cdb6ed96828eed31cef549c47f433160b73ae (diff)
downloadrabbitmq-server-git-d19d494db5944c9ba905fd1dcaeebf7e001df52f.tar.gz
Merged bug23866 into default
Diffstat (limited to 'include')
-rw-r--r--include/rabbit_backing_queue_spec.hrl5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl
index ee102f5e13..20fe4234db 100644
--- a/include/rabbit_backing_queue_spec.hrl
+++ b/include/rabbit_backing_queue_spec.hrl
@@ -26,6 +26,7 @@
fun ((rabbit_types:message_properties())
-> rabbit_types:message_properties())).
-type(async_callback() :: fun ((atom(), fun ((atom(), state()) -> state())) -> 'ok')).
+-type(duration() :: ('undefined' | 'infinity' | number())).
-spec(start/1 :: ([rabbit_amqqueue:name()]) -> 'ok').
-spec(stop/0 :: () -> 'ok').
@@ -55,8 +56,8 @@
-spec(len/1 :: (state()) -> non_neg_integer()).
-spec(is_empty/1 :: (state()) -> boolean()).
-spec(set_ram_duration_target/2 ::
- (('undefined' | 'infinity' | number()), state()) -> state()).
--spec(ram_duration/1 :: (state()) -> {number(), state()}).
+ (duration(), state()) -> state()).
+-spec(ram_duration/1 :: (state()) -> {duration(), state()}).
-spec(needs_timeout/1 :: (state()) -> 'false' | 'timed' | 'idle').
-spec(timeout/1 :: (state()) -> state()).
-spec(handle_pre_hibernate/1 :: (state()) -> state()).