diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-10-06 10:13:22 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-10-06 10:13:22 +0100 |
| commit | b7c4c9f3a19669f7c7ff281963baf7948681aa33 (patch) | |
| tree | 7c885196abb5540a75b5edce3669d0c7cf9d0b98 /include | |
| parent | ab6519c9fe81d873dc5aee437628a582b9500943 (diff) | |
| parent | 2f3affece89d1cff8a40b120eacf63ce5b0f0147 (diff) | |
| download | rabbitmq-server-git-b7c4c9f3a19669f7c7ff281963baf7948681aa33.tar.gz | |
merge default into bug20284
Diffstat (limited to 'include')
| -rw-r--r-- | include/rabbit.hrl | 3 | ||||
| -rw-r--r-- | include/rabbit_backing_queue_spec.hrl | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 24aa8d987c..5770cb9580 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -69,7 +69,8 @@ is_persistent}). -record(ssl_socket, {tcp, ssl}). --record(delivery, {mandatory, immediate, txn, sender, message}). +-record(delivery, {mandatory, immediate, txn, sender, message, + origin, msg_seq_no}). -record(amqp_error, {name, explanation, method = none}). -record(event, {type, props, timestamp}). diff --git a/include/rabbit_backing_queue_spec.hrl b/include/rabbit_backing_queue_spec.hrl index 38c6f9398f..9f3a022797 100644 --- a/include/rabbit_backing_queue_spec.hrl +++ b/include/rabbit_backing_queue_spec.hrl @@ -37,6 +37,7 @@ -type(attempt_recovery() :: boolean()). -type(purged_msg_count() :: non_neg_integer()). -type(ack_required() :: boolean()). +-type(confirm_required() :: boolean()). -spec(start/1 :: ([rabbit_amqqueue:name()]) -> 'ok'). -spec(stop/0 :: () -> 'ok'). @@ -45,12 +46,12 @@ -spec(terminate/1 :: (state()) -> state()). -spec(delete_and_terminate/1 :: (state()) -> state()). -spec(purge/1 :: (state()) -> {purged_msg_count(), state()}). --spec(publish/2 :: (rabbit_types:basic_message(), state()) -> state()). --spec(publish_delivered/3 :: - (ack_required(), rabbit_types:basic_message(), state()) -> - {ack(), state()}). +-spec(publish/3 :: (rabbit_types:basic_message(), + confirm_required(), state()) -> state()). +-spec(publish_delivered/4 :: (ack_required(), rabbit_types:basic_message(), + confirm_required(), state()) -> {ack(), state()}). -spec(fetch/2 :: (ack_required(), state()) -> {fetch_result(), state()}). --spec(ack/2 :: ([ack()], state()) -> state()). +-spec(ack/2 :: ([ack()], state()) -> {[rabbit_guid:guid()], state()}). -spec(tx_publish/3 :: (rabbit_types:txn(), rabbit_types:basic_message(), state()) -> state()). -spec(tx_ack/3 :: (rabbit_types:txn(), [ack()], state()) -> state()). |
