summaryrefslogtreecommitdiff
path: root/include/rabbit.hrl
diff options
context:
space:
mode:
Diffstat (limited to 'include/rabbit.hrl')
-rw-r--r--include/rabbit.hrl7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index e9fa6e376c..35134ee7bc 100644
--- a/include/rabbit.hrl
+++ b/include/rabbit.hrl
@@ -90,6 +90,7 @@
%% this is really an abstract type, but dialyzer does not support them
-type(guid() :: binary()).
+-type(msg_id() :: guid()).
-type(txn() :: guid()).
-type(pkey() :: guid()).
-type(r(Kind) ::
@@ -168,6 +169,9 @@
#amqp_error{name :: atom(),
explanation :: string(),
method :: atom()}).
+
+-type(msg() :: any()).
+
-endif.
%%----------------------------------------------------------------------------
@@ -180,6 +184,9 @@
-define(PERSISTENT_MSG_STORE, msg_store_persistent).
-define(TRANSIENT_MSG_STORE, msg_store_transient).
+-define(HIBERNATE_AFTER_MIN, 1000).
+-define(DESIRED_HIBERNATE, 10000).
+
-ifdef(debug).
-define(LOGDEBUG0(F), rabbit_log:debug(F)).
-define(LOGDEBUG(F,A), rabbit_log:debug(F,A)).