AMQPCChannel Type

Represents an AMQP 0.9.1 channel.

Remarks

This type represents an AMQP 0.9.1 channel.

Fields

Accept
boolean

Whether the channel is currently accepting new messages from the server.

This field reflects whether the channel is currently accepting new messages from the server. When the channel is created, this field is True by default.

The SetChannelAccept method can be used to disable and re-enable message acceptance at any time; refer to that method for more information.

Mode
int

What mode the channel is operating in.

This field reflects what mode the channel is operating in. Possible values are:

  • cmtNormal (0 - default): Normal mode.
  • cmtTransactional (1): Transaction mode.
  • cmtPublishConfirms (2): Publish confirmations mode.

All channels are in normal mode when they are created; there's nothing special about a channel in normal mode.

Channels can be put in transaction mode using the EnableTransactionMode method. While a channel is in transaction mode, all messages published and acknowledgements sent over it will be part of a transaction, and the server will wait to process them until the transaction is either committed or rolled back.

Channels can be put in publish confirmations mode using the EnablePublishConfirms method. While a channel is in publish confirmations mode, the server will acknowledge each message published by the class. The class will wait to fire the MessageOut event until it receives this acknowledgement. (Note that this mode is only available when the RabbitMQCompatible configuration setting is enabled.)

Note: Switching a channel to transaction or publish confirmations mode is a permanent action; the channel will then remain in that mode for the remainder of its lifetime.

Name
String

The name of the channel.

This field reflects the name of the channel.

ReadyToSend
boolean

Whether the channel is ready to send a message.

This field reflects whether the channel is currently ready to send a message or not.

Constructors

public AMQPCChannel();



Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks MQ 2020 Java Edition - Version 20.0 [Build 8155]