Platforms to show: All Mac Windows Linux Cross-Platform

Back to RabbitMQConnectionMBS class.

RabbitMQConnectionMBS.ClientProperties as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the client properties table

Get the properties that were passed to the broker on connection.
(Read only property)

RabbitMQConnectionMBS.DataInBuffer as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Check to see if there is data left in the receive buffer.

Can be used to see if there is data still in the buffer, if so calling SimpleWaitFrame will not immediately enter a blocking read.

Returns true if there is data in the receive buffer, false otherwise.
(Read only property)

RabbitMQConnectionMBS.FramesEnqueued as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Checks to see if there are any incoming frames ready to be read.

Checks to see if there are any frame objects buffered by the connection object. Having one or more frames buffered means that SimpleWaitFrame() will return a frame without potentially blocking on a read() call.

Returns true if there are frames enqueued, false otherwise.
(Read only property)

RabbitMQConnectionMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The internal object reference.

(Read and Write property)

RabbitMQConnectionMBS.HandshakeTimeout as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get or set the login handshake timeout.

Login performs the login handshake with the broker. This function sets the timeout associated with completing this operation from the client side.

The timeout must be set before Login is called to change from the default timeout.

Note that the RabbitMQ broker has a configurable timeout for completing the login handshake, the default is 10 seconds. rabbitmq-c has a default of 12 seconds.
(Read and Write property)

RabbitMQConnectionMBS.Heartbeat as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the number of seconds between heartbeats of the connection.

The number of seconds between heartbeats is set when connection negotiation takes place in Login.

Returns the number of seconds between heartbeats.
(Read only property)

RabbitMQConnectionMBS.MaximumChannel as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the maximum number of channels the connection can handle.

The maximum number of channels is set when connection negotiation takes
place in Login.

Returns the maximum number of channels. 0 if there is no limit.
(Read only property)

RabbitMQConnectionMBS.MaximumFrameSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the maximum size of an frame the connection can handle.

The maximum size of an frame is set when connection negotiation takes place in Login.

Return the maximum size in bytes of an frame.
(Read only property)

RabbitMQConnectionMBS.RPCReply as RabbitMQRPCReplyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Get the last global RPCReply

The API methods corresponding to most synchronous AMQP methods return a pointer to the decoded method result. Upon error, they return nil, and we need some way of discovering what, if anything,
went wrong. RPCReply() returns the most recent RabbitMQRPCReplyMBS instance corresponding to such an API operation for the given connection.

Only use it for operations that do not themselves return RabbitMQRPCReplyMBS; operations that do return RabbitMQRPCReplyMBS generally do NOT update this per-connection-global RabbitMQRPCReplyMBS instance.

Returns the most recent RabbitMQRPCReplyMBS object:

  • Reply.Type = kResponseNormal. Login completed successfully
  • Reply.Type = kResponseLibraryException. In most cases errors from the broker when logging in will be represented by the broker closing the socket. In this case r.libraryError will be set to kStatusConnectionClosed. This error can represent a number of error conditions including: invalid vhost, authentication failure.
  • Reply.Type = kResponseServerException. The broker returned an exception:
  • If Reply.MethodId = kChannelCloseMethod a channel exception occurred, check decoded properties to see details of the exception. The client should SendMethod() a kChannelCloseOkMethod. The channel must be re-opened before it can be used again. Any resources associated with the channel (auto-delete exchanges, auto-delete queues, consumers) are invalid and must be recreated before attempting to use them again.
  • If Reply.MethodId = kConnectionCloseMethod a connection exception occurred, check decoded properties to see details of the exception. The client SendMethod() a kConnectionCloseOkMethod and disconnect from the broker.
(Read only property)

Some examples using this property:

RabbitMQConnectionMBS.RPCTimeout as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RabbitMQ MBS MongoDB Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The RPC timeout.

Get or set the RPC timeout.

Sets the timeout for any RPC-style AMQP command (e.g., QueueDeclare).
This timeout may be changed at any time by calling this function with a new
timeout. The timeout applies individually to each RPC that is made.

The default value is 0, or an infinite timeout.

When an RPC times out, the function will return an error kStatusTimeout,
and the connection will be closed.

RPC-timeouts are an advanced feature intended to be used to detect
dead connections quickly when the rabbitmq-c implementation of heartbeats
does not work. Do not use RPC timeouts unless you understand the implications
of doing so.
(Read and Write property)

The items on this page are in the following plugins: MBS MongoDB Plugin.


The biggest plugin in space...