diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_event.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rabbit_event.erl b/src/rabbit_event.erl index ddb1287382..d784a6aafc 100644 --- a/src/rabbit_event.erl +++ b/src/rabbit_event.erl @@ -37,6 +37,14 @@ -export([stats_level/1]). -export([notify/2]). +-opaque(state() :: {atom(), atom()}). + +-spec(init_stats_timer/0 :: () -> state()). +-spec(ensure_stats_timer/3 :: + (state(), fun (() -> 'ok'), fun (() -> 'ok')) -> state()). +-spec(stop_stats_timer/2 :: (state(), fun (() -> 'ok')) -> state()). +-spec(stats_level/1 :: (state()) -> atom()). +-spec(notify/2 :: (atom(), term()) -> 'ok'). -record(state, {level, timer}). |
