diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2013-08-20 15:29:46 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2013-08-20 15:29:46 +0100 |
| commit | 5c38d4daf77f403351380f2c63ff34974d8ca059 (patch) | |
| tree | a7ae04a3af5c253793ac3dce898bcb71a147969a /src | |
| parent | 4b7e9ee0b54f923d237a5f8f9df9189462afc70f (diff) | |
| download | rabbitmq-server-git-5c38d4daf77f403351380f2c63ff34974d8ca059.tar.gz | |
Tighter and slightly more self-documenting.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_queue_decorator.erl | 9 |
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. |
