Amqp_client_async.ChannelOperations on channels
val no_confirm : no_confirm confirmsval with_confirm : with_confirm confirmsval create :
id:string ->
'a confirms ->
Framing.t ->
Framing.channel_no ->
'a t Thread.Deferred.tCreate a new channel. Use Connection.open_channel rather than this method directly
val close : _ t -> unit Thread.Deferred.tClose the channel
val on_closed : _ t -> unit Thread.Deferred.ton_closed becomes determined after then channel is closed.
If there are no consumers of this when the channel is close Connection_closed will be raised to the governing exception handler (the parent monitor in async, or Lwt.async_exception_hook in lwt).
val on_return :
_ t ->
(Spec.Basic.Return.t * (Spec.Basic.Content.t * string)) Thread.Pipe.Reader.tReceive all returned messages. Reutnred message will be send to all readers returned from call to this function. Listening for returned messages are useful in e.g. rpc to know that message delivery failed and then stop waiting for a response.
Note that channels in ack mode there is no need to listen for returned messages, as message delivery will fail synchoniously.
val id : _ t -> stringGet the id of the channel
val channel_no : _ t -> intGet the channel_no of the connection
val set_prefetch : ?count:int -> ?size:int -> _ t -> unit Thread.Deferred.tSet prefetch counters for a channel.
val set_global_prefetch :
?count:int ->
?size:int ->
_ t ->
unit Thread.Deferred.tSet global prefetch counters.
val flush : _ t -> unit Thread.Deferred.tFlush the channel, making sure all messages have been sent
module Transaction : sig ... endTransactions. Transactions can be made per channel.