diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2011-03-04 15:41:25 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-03-04 15:41:25 +0000 |
commit | b6058d0b1bef5c5f9eddff225ff2accc70eea086 (patch) | |
tree | 99c2b35f0b1b07648f5aff3db8d6c0b51e169214 /include/rabbit_backing_queue_spec.hrl | |
parent | e2ee61c29871751b648efb3727b991abdd810edf (diff) | |
download | rabbitmq-server-b6058d0b1bef5c5f9eddff225ff2accc70eea086.tar.gz |
beginnings of decoupling bq from amqqueue
- parameterise bq with callbacks
Diffstat (limited to 'include/rabbit_backing_queue_spec.hrl')
-rw-r--r-- | include/rabbit_backing_queue_spec.hrl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl index accb2c0e..2e4d1b0a 100644 --- a/include/rabbit_backing_queue_spec.hrl +++ b/include/rabbit_backing_queue_spec.hrl @@ -25,11 +25,13 @@ -type(message_properties_transformer() :: fun ((rabbit_types:message_properties()) -> rabbit_types:message_properties())). +-type(async_callback() :: fun ((fun ((state()) -> state())) -> 'ok')). +-type(sync_callback() :: fun ((fun ((state()) -> state())) -> 'ok' | 'error')). -spec(start/1 :: ([rabbit_amqqueue:name()]) -> 'ok'). -spec(stop/0 :: () -> 'ok'). --spec(init/3 :: (rabbit_amqqueue:name(), is_durable(), attempt_recovery()) -> - state()). +-spec(init/5 :: (rabbit_amqqueue:name(), is_durable(), 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()}). |