summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-08-20 15:29:46 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-08-20 15:29:46 +0100
commit5c38d4daf77f403351380f2c63ff34974d8ca059 (patch)
treea7ae04a3af5c253793ac3dce898bcb71a147969a /src
parent4b7e9ee0b54f923d237a5f8f9df9189462afc70f (diff)
downloadrabbitmq-server-git-5c38d4daf77f403351380f2c63ff34974d8ca059.tar.gz
Tighter and slightly more self-documenting.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_queue_decorator.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rabbit_queue_decorator.erl b/src/rabbit_queue_decorator.erl
index d3dec9dc91..a0d0cca549 100644
--- a/src/rabbit_queue_decorator.erl
+++ b/src/rabbit_queue_decorator.erl
@@ -8,6 +8,13 @@
-ifdef(use_specs).
+-type(notify_event() :: 'consumer_blocked' |
+ 'consumer_unblocked' |
+ 'queue_run_finished' |
+ 'basic_consume' |
+ 'basic_cancel' |
+ 'notification_requested').
+
-callback startup(rabbit_types:amqqueue()) -> 'ok'.
-callback shutdown(rabbit_types:amqqueue()) -> 'ok'.
@@ -17,7 +24,7 @@
-callback active_for(rabbit_types:amqqueue()) -> boolean().
--callback notify(rabbit_types:amqqueue(), atom(), any()) -> 'ok'.
+-callback notify(rabbit_types:amqqueue(), notify_event(), any()) -> 'ok'.
-else.