diff options
| author | Matthias Radestock <matthias@lshift.net> | 2009-06-05 08:10:26 +0100 |
|---|---|---|
| committer | Matthias Radestock <matthias@lshift.net> | 2009-06-05 08:10:26 +0100 |
| commit | eb638c17b4ef2c97ae37962e633584d269700d3d (patch) | |
| tree | e28360e79f24f02294273c70ad6e1596eb78cfd9 /include | |
| parent | e30c012241d4a041c36d6d1e1c9808492c355dd5 (diff) | |
| download | rabbitmq-server-git-eb638c17b4ef2c97ae37962e633584d269700d3d.tar.gz | |
refactoring: bundle up all the data for a publish
Passing this around as separate args was becoming a pain. Also, now
it's easier to add more data items.
Diffstat (limited to 'include')
| -rw-r--r-- | include/rabbit.hrl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index ffda069840..5ebc82a2be 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -64,6 +64,8 @@ -record(basic_message, {exchange_name, routing_key, content, persistent_key}). +-record(delivery, {mandatory, immediate, txn, message}). + %%---------------------------------------------------------------------------- -ifdef(use_specs). @@ -134,6 +136,11 @@ content :: content(), persistent_key :: maybe(pkey())}). -type(message() :: basic_message()). +-type(delivery() :: + #delivery{mandatory :: bool(), + immediate :: bool(), + txn :: maybe(txn()), + message :: message()}). %% this really should be an abstract type -type(msg_id() :: non_neg_integer()). -type(msg() :: {queue_name(), pid(), msg_id(), bool(), message()}). |
