diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-03-14 16:54:23 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-03-14 16:54:23 +0000 |
commit | b6f5d1dcd1e9465f84a4374ecdece7a37f51504b (patch) | |
tree | 7a55815d85b837a317a9e6b528461708c315b4ec /include | |
parent | 279e858cac439e493fe3990a4ef0ef689a0ff29b (diff) | |
parent | 80854415c2e1579d52127b9722c985c77d0791e4 (diff) | |
download | rabbitmq-server-b6f5d1dcd1e9465f84a4374ecdece7a37f51504b.tar.gz |
merge default into bug23554
Diffstat (limited to 'include')
-rw-r--r-- | include/rabbit_backing_queue_spec.hrl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl index d41fcb17..b85e4ad6 100644 --- a/include/rabbit_backing_queue_spec.hrl +++ b/include/rabbit_backing_queue_spec.hrl @@ -25,10 +25,13 @@ -type(message_properties_transformer() :: fun ((rabbit_types:message_properties()) -> rabbit_types:message_properties())). +-type(async_callback() :: fun ((atom(), fun ((atom(), state()) -> state())) -> 'ok')). +-type(sync_callback() :: fun ((atom(), fun ((atom(), state()) -> state())) -> 'ok' | 'error')). -spec(start/1 :: ([rabbit_amqqueue:name()]) -> 'ok'). -spec(stop/0 :: () -> 'ok'). --spec(init/2 :: (rabbit_types:amqqueue(), attempt_recovery()) -> state()). +-spec(init/4 :: (rabbit_types:amqqueue(), attempt_recovery(), + async_callback(), sync_callback()) -> state()). -spec(terminate/1 :: (state()) -> state()). -spec(delete_and_terminate/1 :: (state()) -> state()). -spec(purge/1 :: (state()) -> {purged_msg_count(), state()}). @@ -41,6 +44,7 @@ (false, rabbit_types:basic_message(), 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()) -> state()). @@ -66,7 +70,6 @@ -spec(idle_timeout/1 :: (state()) -> state()). -spec(handle_pre_hibernate/1 :: (state()) -> state()). -spec(status/1 :: (state()) -> [{atom(), any()}]). --spec(invoke/3 :: (atom(), fun ((A) -> A), state()) -> - {[rabbit_guid:guid()], state()}). +-spec(invoke/3 :: (atom(), fun ((atom(), A) -> A), state()) -> state()). -spec(validate_message/2 :: (rabbit_types:basic_message(), state()) -> {'invalid' | 'valid', state()}). |