Behaviours: gen_server.
| await/2 | await/2 waits for a publisher to come on-line or a timeout. |
| child_spec/4 | Provide a child spec for OTP supervisor linkage. |
| publish/6 | publish a message asynchronously to RabbitMQ. |
| publish_sync/6 | publish a message synchronously to RabbitMQ. |
| start_link/3 | Start a new publication worker. |
| start_link/4 | start_link/4 starts a publisher with options. |
| update_configuration/4 | |
| where/1 | where/1 returns what Pid a publisher is currently running under. |
await(N, Timeout) -> any()
await/2 waits for a publisher to come on-line or a timeout
child_spec(Name, Conn, Decls, Options) -> any()
Provide a child spec for OTP supervisor linkage
The options are is as instart_link/4
publish(Publisher, Exch, Key, ContentType, Payload, Opts) -> any()
publish a message asynchronously to RabbitMQ
The specification is that you have to provide all parameters, because experience has shown that you end up having to tweak these things quite a lot in practice. Hence we provide the full kind of messaging, rather than a subset.publish_sync(Publisher, Exch, Key, ContentType, Payload, Opts) -> any()
publish a message synchronously to RabbitMQ
A synchronous publish means the caller is blocked until the message is on-the-wire toward the RabbitMQ server. It doesn't guarantee delivery, for which you must use publisher confirms. The options are as inpublish/5
start_link(Name, Connection, Declarations) -> any()
Start a new publication worker
Provides an OTP gen_server for supervisor linkage. TheName is the name of
this publisher (which it registers itself in gproc as). The Connection is the turtle-name
for the connection, i.e., amqp_server. Finally, Declarations is a declaration list to
be executed against AMQP when setting up.
start_link(Name, Connection, Declarations, InOptions) -> any()
start_link/4 starts a publisher with options
This variant of start_link takes an additionalOptions section which can be
used to set certain publisher-specific options:
update_configuration(Name, Connection, Decls, InOpts) -> any()
where(N) -> any()
where/1 returns what Pid a publisher is currently running under
Generated by EDoc