Behaviours: gen_server.
name() = term()
opts() = #{id := supervisor:child_id(), name := name()}
apply/3 | Calls a function on the underlying amqp channel. |
await/1 | Equivalent to kyu_channel:await(Name, 60000). |
await/2 | Waits for the channel to successfully setup. |
call/2 | Makes a gen_server:call/2 to the channel. |
call/3 | Makes a gen_server:call/3 to the channel. |
cast/2 | Makes a gen_server:cast/2 to the channel. |
child_spec/2 | Returns a channel child spec. |
connection/1 | Returns the name of the channel's connection. |
option/2 | Equivalent to kyu_channel:option(Name, Key, undefined). |
option/3 | Returns a value from the channel's options. |
pid/1 | Returns the pid of the underlying amqp channel. |
start_link/2 | Starts a channel. |
status/1 | Returns the up atom if the process is running and has an active channel. |
stop/1 | Gracefully closes the channel. |
subscribe/1 | Subscribes the calling process to events from the channel. |
where/1 | Returns the pid of the channel. |
apply(Name::name(), Function::atom(), Args::list()) -> term()
Calls a function on the underlying amqp channel.
await(Name::name()) -> ok
Equivalent to kyu_channel:await(Name, 60000).
await(Name::name(), Timeout::timeout()) -> ok
Waits for the channel to successfully setup.
call(Name::name(), Request::term()) -> term()
Makes a gen_server:call/2 to the channel.
call(Name::name(), Request::term(), Timeout::timeout()) -> term()
Makes a gen_server:call/3 to the channel.
cast(Name::name(), Request::term()) -> ok
Makes a gen_server:cast/2 to the channel.
child_spec(Connection::kyu_connection:name(), Opts::opts()) -> supervisor:child_spec()
Returns a channel child spec.
connection(Name::name()) -> kyu_connection:name()
Returns the name of the channel's connection.
option(Name::name(), Key::atom()) -> term()
Equivalent to kyu_channel:option(Name, Key, undefined).
option(Name::name(), Key::atom(), Value::term()) -> term()
Returns a value from the channel's options.
pid(Name::name()) -> pid() | undefined
Returns the pid of the underlying amqp channel.
start_link(Connection::kyu_connection:name(), Opts::opts()) -> {ok, pid()} | {error, term()}
Starts a channel.
status(Name::name()) -> up | down
Returns the up atom if the process is running and has an active channel.
stop(Name::name()) -> ok
Gracefully closes the channel.
subscribe(Name::name()) -> ok
Subscribes the calling process to events from the channel.
where(Name) -> any()
Returns the pid of the channel. -spec where(Name :: name()) -> pid() | undefined.
Generated by EDoc