module Netamqp_channel:Manage AMQP channelssig
..end
The client chooses the channel number identifying the channel. It is allowed to reuse channel numbers after closing a channel.
Channels are equipped with flow control: If the server demands to send content data slower, the client will respond to this. There is no configuration necessary to enable this feature.
Channels can be closed by either peer. It is possible to transmit
error codes at channel close time.
exception Not_open
exception Error of string
typechannel =
int
type
channel_obj
val open_e : Netamqp_connection.connection ->
channel -> channel_obj Uq_engines.engine
val open_s : Netamqp_connection.connection ->
channel -> channel_obj
val open_next_e : Netamqp_connection.connection ->
channel_obj Uq_engines.engine
val open_next_s : Netamqp_connection.connection -> channel_obj
val close_e : channel_obj -> unit Uq_engines.engine
Netamqp_channel.Not_open
if the
channel is not open.val close_s : channel_obj -> unit
val is_open : channel_obj -> bool
is_open
returns true
.
Checking is_open
is mainly useful for recovery after exceptions.
Some exceptions close the channel, some do not.
val configure_sync_timeout : channel_obj -> float -> unit
Netamqp_types.Timeout
exception.val sync_c2s_e : ?no_wait:Netamqp_endpoint.sync_server_to_client_method_t ->
channel_obj ->
Netamqp_endpoint.sync_client_initiated_method_t ->
Netamqp_endpoint.data option ->
(Netamqp_endpoint.sync_server_to_client_method_t *
Netamqp_endpoint.data option)
Uq_engines.engine
val sync_c2s_s : ?no_wait:Netamqp_endpoint.sync_server_to_client_method_t ->
channel_obj ->
Netamqp_endpoint.sync_client_initiated_method_t ->
Netamqp_endpoint.data option ->
Netamqp_endpoint.sync_server_to_client_method_t *
Netamqp_endpoint.data option
Netamqp_endpoint.sync_c2s_e
, but the channel_obj
can be passed, and the right timeout handling is done for this channel.val number : channel_obj -> channel
val connection : channel_obj -> Netamqp_connection.connection
val endpoint : channel_obj -> Netamqp_endpoint.endpoint
val event_system : channel_obj -> Unixqueue.event_system