Behaviours: gen_server
.
Authors: : Ulf Wiger (ulf.wiger@erlang-solutions.com
).
info_category() = queues | group_rates | counters
queue_name() = any()
add_counter(Name, Options) -> any()
add_group_rate(Name, Options) -> any()
add_queue(Name::queue_name(), Options::[option()]) -> ok
ask() -> {ok, any()} | {error, rejected | timeout}
ask(Type::job_class()) -> {ok, reg_obj()} | {error, rejected | timeout}
ask_queue(QName, Request) -> Reply
Invoke the Q:handle_call/3 function (if it exists).
Send a request to a specific queue in the JOBS server. Each queue has its own local state, allowing it to collect special statistics. This function allows a client to send a request that is handled by a specific queue instance, either to pull information from the queue, or to influence its state.
code_change(FromVsn, St, Extra) -> any()
delete_counter(Name) -> any()
delete_group_rate(Name) -> any()
delete_queue(Name::queue_name()) -> ok
dequeue(Type::job_class(), N::integer() | infinity) -> [{timestamp(), any()}]
done(Opaque::reg_obj()) -> ok
enqueue(Type::job_class(), Item::any()) -> ok
handle_call(Req, From, S) -> any()
handle_cast(Msg, St) -> any()
handle_info(Msg, St) -> any()
info(Item::info_category()) -> [any()]
init(Opts::[option()]) -> {ok, #st{}}
modify_counter(Name, Opts) -> any()
modify_group_rate(Name, Opts) -> any()
modify_regulator(Type, QName, RegName, Opts) -> any()
queue_info(Name) -> any()
queue_info(Name, Item) -> any()
run(Fun::fun(() -> X)) -> X
run(Type::job_class(), Fun::fun(() -> X)) -> X
set_modifiers(Modifiers) -> any()
start_link() -> {ok, pid()}
start_link(Opts0::[option()]) -> {ok, pid()}
terminate(X1, X2) -> any()
timestamp() -> any()
timestamp_to_datetime(TS) -> any()